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 -->

Miles Oberstadt committed Dec 16, 2025 at 13:16 UTC a4454420653c6795775eec564f8a26a471992bc9
1 file changed +3 -13
content/packages-and-modules/securing-your-code/trusted-publishers.mdx
+3 -13
@@ -91,12 +91,8 @@ jobs:
91
92 - uses: actions/setup-node@v4
93 with:
94 - node-version: '20'
94 + node-version: '24'
95 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
96 - run: npm ci
97 - run: npm run build --if-present
98 - run: npm test
@@ -116,7 +112,7 @@ stages:
112 - publish
113
114 variables:
119 - NODE_VERSION: '20'
115 + NODE_VERSION: '24'
116
117 test:
118 stage: test
@@ -134,8 +130,6 @@ publish:
130 SIGSTORE_ID_TOKEN:
131 aud: sigstore
132 script:
137 - # Ensure npm 11.5.1 or later is installed
138 - - npm install -g npm@latest
133 - npm ci
134 - npm run build --if-present
135 - npm publish
@@ -240,12 +234,8 @@ While trusted publishing handles the publish operation, you may still need authe
234 # GitHub Actions example
235 - uses: actions/setup-node@v4
236 with:
243 - node-version: '20'
237 + node-version: '24'
238 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 -
239 # Use a read-only token for installing dependencies
240 - run: npm ci
241 env: