Skip to content

Commit 3b5c3f9

Browse files
authored
internal: pin node version for release action (#4610)
npm trusted publishing requires a newer Node/npm line than 16.x.x pinning to node v24, latest LTS version
1 parent 6dee435 commit 3b5c3f9

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,18 +93,15 @@ jobs:
9393
runs-on: ubuntu-latest
9494
environment: release
9595
permissions:
96-
contents: read # for actions/checkout
96+
contents: read # keep token scopes minimal
9797
id-token: write # for npm trusted publishing via OIDC
9898
steps:
99-
- name: Checkout repo
100-
uses: actions/checkout@v4
101-
with:
102-
persist-credentials: false
103-
10499
- name: Setup Node.js
105100
uses: actions/setup-node@v4
106101
with:
107-
node-version-file: '.node-version'
102+
# npm trusted publishing requires a newer Node/npm line than 16.x.x
103+
# branch runtime constraints, so pin only this job to Node 24.
104+
node-version: 24
108105

109106
- name: Download npmDist package
110107
uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)