diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b1da260..f958ac9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,6 +15,9 @@ jobs: test: name: Publish to NPM runs-on: ubuntu-latest + permissions: + contents: read + id-token: write steps: - name: Checkout uses: actions/checkout@v6 @@ -34,14 +37,10 @@ jobs: - name: Push Release if: ${{ !github.event.release.prerelease }} - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: | - npm publish --tag latest --access=public + npm publish --tag latest --access=public --provenance - name: Push Pre-Release if: ${{ github.event.release.prerelease }} - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: | - npm publish --tag next --access=public + npm publish --tag next --access=public --provenance