File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -204,23 +204,18 @@ jobs:
204204 needs : [preflight, npm-merge, npm-build]
205205 runs-on : ubuntu-latest
206206 permissions :
207- contents : read
207+ contents : write
208208 id-token : write
209209
210210 steps :
211211 - name : Check out ${{ github.repository }}
212- uses : actions/checkout@v4
212+ uses : actions/checkout@v6
213213
214214 - name : Setup Node.js
215- uses : actions/setup-node@v4
215+ uses : actions/setup-node@v6
216216 with :
217- node-version : ' 24'
218- registry-url : ' https://registry.npmjs.org'
219-
220- - name : Update npm to latest version
221- run : |
222- npm install npm@latest
223- npm -v
217+ node-version : 24
218+ registry-url : https://registry.npmjs.org
224219
225220 - name : Download NPM packages artifact
226221 uses : actions/download-artifact@v4
@@ -251,8 +246,9 @@ jobs:
251246 if [ "$local_version" = "$remote_version" ]; then
252247 echo "Local and distant versions are identical. Skip publishing."
253248 else
249+ # workaround for https://github.com/actions/setup-node/issues/1440
254250 echo "Publishing..."
255- npm publish "$tarball" --access public --provenance
251+ NODE_AUTH_TOKEN="" npm publish "$tarball" --access public --provenance
256252 fi
257253
258254 rm -rf "$tmp_dir"
You can’t perform that action at this time.
0 commit comments