Skip to content

Commit 819a877

Browse files
authored
fix(release): add Node.js 22 setup for type stripping support (#114)
## Summary The release scripts use `node --experimental-strip-types` which requires Node.js 22.6+. The default Node.js on GitHub Actions runners is older, causing the pre-release command to fail with: ``` node: bad option: --experimental-strip-types ``` ## Changes - Add `actions/setup-node@v4` with `node-version: 22` to ensure type stripping works
1 parent 7edf15c commit 819a877

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ jobs:
3030
with:
3131
token: ${{ steps.token.outputs.token }}
3232
fetch-depth: 0
33+
- name: Setup Node.js
34+
uses: actions/setup-node@v4
35+
with:
36+
node-version: 22
3337
- name: Prepare release
3438
uses: getsentry/craft@v2
3539
env:

0 commit comments

Comments
 (0)