diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 8f8dccf..d710866 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -42,6 +42,9 @@ jobs: runs-on: ubuntu-latest needs: [build] if: ${{ startsWith(github.ref, 'refs/tags/') }} + permissions: + contents: read + id-token: write steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -62,6 +65,4 @@ jobs: else echo "tag=latest" >> "$GITHUB_OUTPUT" fi - - run: npm publish --access public --tag ${{ steps.npm-tag.outputs.tag }} - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - run: npm publish --access public --provenance --tag ${{ steps.npm-tag.outputs.tag }}