fix: use Node 24 for release workflow to get npm OIDC support (#165)
Node 22 ships npm 10.x which doesn't support trusted publishing via OIDC (requires npm 11.5.1+). Node 24 bundles it natively, removing the need for the `npm install -g npm@latest` step which was failing with a `Cannot find module 'promise-retry'` error due to npm corrupting itself during self-upgrade.
This commit is contained in:
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
@@ -35,7 +35,7 @@ jobs:
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||
with:
|
||||
node-version: 22
|
||||
node-version: 24
|
||||
cache: pnpm
|
||||
registry-url: https://registry.npmjs.org
|
||||
|
||||
@@ -45,9 +45,6 @@ jobs:
|
||||
- name: Build packages
|
||||
run: pnpm build
|
||||
|
||||
- name: Update npm
|
||||
run: npm install -g npm@latest
|
||||
|
||||
- name: Create Release Pull Request or Publish
|
||||
id: changesets
|
||||
uses: changesets/action@c8bada60c408975afd1a20b3db81d6eee6789308 # v1.4.9
|
||||
|
||||
Reference in New Issue
Block a user