Skip to content

Commit a445442

Browse files
Update trusted-publishers.mdx to reflect the correct version of node (#1820)
<!-- What / Why --> <!-- Describe the request in detail. What it does and why it's being changed. --> node:24 is the first node version to satisfy the npm 11 requirement. Docs should use the correct container version to ensure dependencies for npm 11 ## References <!-- Examples: Related to #0 Depends on #0 Blocked by #0 Fixes #0 Closes #0 -->
1 parent a59230d commit a445442

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

content/packages-and-modules/securing-your-code/trusted-publishers.mdx

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,8 @@ jobs:
9191

9292
- uses: actions/setup-node@v4
9393
with:
94-
node-version: '20'
94+
node-version: '24'
9595
registry-url: 'https://registry.npmjs.org'
96-
97-
# Ensure npm 11.5.1 or later is installed
98-
- name: Update npm
99-
run: npm install -g npm@latest
10096
- run: npm ci
10197
- run: npm run build --if-present
10298
- run: npm test
@@ -116,7 +112,7 @@ stages:
116112
- publish
117113
118114
variables:
119-
NODE_VERSION: '20'
115+
NODE_VERSION: '24'
120116
121117
test:
122118
stage: test
@@ -134,8 +130,6 @@ publish:
134130
SIGSTORE_ID_TOKEN:
135131
aud: sigstore
136132
script:
137-
# Ensure npm 11.5.1 or later is installed
138-
- npm install -g npm@latest
139133
- npm ci
140134
- npm run build --if-present
141135
- npm publish
@@ -240,12 +234,8 @@ While trusted publishing handles the publish operation, you may still need authe
240234
# GitHub Actions example
241235
- uses: actions/setup-node@v4
242236
with:
243-
node-version: '20'
237+
node-version: '24'
244238
registry-url: 'https://registry.npmjs.org'
245-
246-
# Ensure npm 11.5.1 or later for trusted publishing
247-
- run: npm install -g npm@latest
248-
249239
# Use a read-only token for installing dependencies
250240
- run: npm ci
251241
env:

0 commit comments

Comments
 (0)