diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f18a949..4aa92b7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,11 @@ on: tags: - v[0-9]+.[0-9]+.[0-9]+ +# Getting an ID token is required for NPMJS trusted publishers +permissions: + id-token: write # Required for OIDC + contents: read + env: CI: true jobs: @@ -20,6 +25,4 @@ jobs: cache: "npm" - run: npm ci - - run: npm publish --access public - env: - NODE_AUTH_TOKEN: ${{ secrets.INRUPT_NPM_TOKEN }} + - run: npm publish