We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4a3df2 commit 823d73fCopy full SHA for 823d73f
.github/workflows/node-js-packaging.yml
@@ -308,7 +308,7 @@ jobs:
308
name: Publish
309
runs-on: ubuntu-latest
310
permissions:
311
- contents: read
+ # needed for trusted publishing
312
id-token: write
313
needs:
314
- build-freebsd
@@ -341,9 +341,4 @@ jobs:
341
- name: Publish
342
if: startsWith(github.ref, 'refs/tags/')
343
working-directory: bindings/node
344
- run: |
345
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
346
- npm publish --access public --provenance true ${{ contains(github.ref_name, '-rc') && '--tag next' || '' }}
347
- env:
348
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
349
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
+ run: npm publish ${{ contains(github.ref_name, '-rc') && '--tag next' || '' }}
0 commit comments