diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 23d2a96..73f0bf0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,6 +4,10 @@ on: push: tags: [ "v*" ] +permissions: + id-token: write + contents: read + env: CARGO_TERM_COLOR: always @@ -42,8 +46,5 @@ jobs: - name: Publish to npm run: | - echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > pkg/.npmrc cd pkg - npm publish --access public - env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file + npm publish --access public --provenance \ No newline at end of file