Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,24 @@ jobs:
runs-on: ubuntu-latest
environment: release # required for npm OIDC trusted publishing
permissions:
contents: write # commit CHANGELOG + tag
issues: write
pull-requests: write
id-token: write # npm provenance + OIDC
contents: read
id-token: write # npm provenance + OIDC + GitHub App token mint
steps:
- name: Generate release token
uses: actions/create-github-app-token@v3
id: app-token
with:
app-id: ${{ secrets.RELEASER_APP_ID }}
private-key: ${{ secrets.RELEASER_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: ${{ github.event.repository.name }}

- name: Checkout
uses: actions/checkout@v6
with:
submodules: recursive
fetch-depth: 0
token: ${{ steps.app-token.outputs.token }}
persist-credentials: false

- name: Setup Node.js
Expand Down Expand Up @@ -77,5 +85,5 @@ jobs:

- name: semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
run: semantic-release