Skip to content

fix: replace pnpm to npm install#436

Merged
ruromero merged 1 commit into
guacsec:mainfrom
a-oren:fix/pnpm
Apr 23, 2026
Merged

fix: replace pnpm to npm install#436
ruromero merged 1 commit into
guacsec:mainfrom
a-oren:fix/pnpm

Conversation

@a-oren

@a-oren a-oren commented Apr 23, 2026

Copy link
Copy Markdown
Contributor

Description

Describe what you did and why.

Related issue (if any): fixes #issue_number_goes_here

Checklist

  • I have followed this repository's contributing guidelines.
  • I will adhere to the project's code of conduct.

Additional information

Anything else?

Summary by Sourcery

CI:

  • Switch the release GitHub Actions workflow from using pnpm to npm to install pnpm globally.

@a-oren
a-oren requested a review from ruromero April 23, 2026 14:13
@sourcery-ai

sourcery-ai Bot commented Apr 23, 2026

Copy link
Copy Markdown
Contributor
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Update the GitHub Actions release workflow to install pnpm globally using npm instead of invoking pnpm directly, ensuring pnpm is available even on environments where it is not preinstalled.

File-Level Changes

Change Details Files
Ensure pnpm is installed via npm in the release GitHub Actions workflow.
  • Change the installation command in the release workflow step from using pnpm to using npm to install pnpm globally
.github/workflows/release.yml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've found 1 issue, and left some high level feedback:

  • Consider pinning the pnpm version (or using corepack enable pnpm with setup-node) instead of installing the latest globally via npm install -g pnpm to avoid unexpected breakage from upstream pnpm changes.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- Consider pinning the pnpm version (or using `corepack enable pnpm` with setup-node) instead of installing the latest globally via `npm install -g pnpm` to avoid unexpected breakage from upstream pnpm changes.

## Individual Comments

### Comment 1
<location path=".github/workflows/release.yml" line_range="95" />
<code_context>

       - name: Install pnpm
-        run: pnpm install -g pnpm
+        run: npm install -g pnpm

       - name: Compute Maven profiles
</code_context>
<issue_to_address>
**suggestion:** Consider pinning pnpm to a specific version or using the official setup action for reproducible builds.

Using `npm install -g pnpm` without a version will always fetch the latest release, which can cause non-deterministic changes in your CI over time. Pin a specific pnpm version or use `pnpm/action-setup` with an explicit version to keep the release workflow stable across runs.
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Comment thread .github/workflows/release.yml
@ruromero
ruromero merged commit 55e88d9 into guacsec:main Apr 23, 2026
44 of 45 checks passed
@a-oren
a-oren deleted the fix/pnpm branch April 28, 2026 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants