Skip to content

Commit c2b7464

Browse files
authored
fix(ci): Add pnpm and Node.js setup to release workflow (#1247)
## Summary Fix the release workflow which was failing with: ``` bash: scripts/bump-version.sh: line 19: pnpm: command not found ``` ## Changes Added pnpm and Node.js setup steps to the release workflow before Craft runs the preReleaseCommand. This ensures `pnpm` is available when `bump-version.sh` executes. The setup steps match those used in `build.yml`: - `pnpm/action-setup@v4` - reads pnpm version from `packageManager` in package.json - `actions/setup-node@v6` - reads Node version from the `volta` section in package.json
1 parent 805c148 commit c2b7464

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,15 @@ jobs:
3737
token: ${{ steps.token.outputs.token }}
3838
fetch-depth: 0
3939

40+
- name: Setup pnpm
41+
uses: pnpm/action-setup@v4
42+
43+
- name: Set up Node
44+
uses: actions/setup-node@v6
45+
with:
46+
node-version-file: "package.json"
47+
cache: "pnpm"
48+
4049
- name: Prepare release
4150
uses: getsentry/craft@1c58bfd57bfd6a967b6f3fc92bead2c42ee698ce # v2
4251
env:

0 commit comments

Comments
 (0)