diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f6f6bfdd..51bc417b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,6 +15,12 @@ concurrency: group: release cancel-in-progress: false +permissions: + contents: write # to be able to publish a GitHub release + id-token: write # to enable use of OIDC for npm provenance + issues: write # to be able to comment on released issues + pull-requests: write # to be able to comment on released pull requests + jobs: publish: name: Publish NPM package @@ -37,7 +43,8 @@ jobs: run: npm run build - name: Release new version + run: npx semantic-release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_CONFIG_PROVENANCE: true NPM_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }} - run: npx semantic-release