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: 14 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,25 @@ jobs:
# Must be false: otherwise checkout stores the default GITHUB_TOKEN as a git
# auth header and the release push would use it (github-actions[bot], which is
# NOT on main's bypass list → GH006). With no persisted credentials, the push
# uses the SEMANTIC_RELEASE_GH_TOKEN below instead.
# uses the app token below instead.
persist-credentials: false
- name: Create app token
id: app-token
uses: actions/create-github-app-token@v3
with:
# the semantic-release-innoactive GitHub App; the token is scoped to this repository
client-id: Iv23li5KyqO4ET5ySTXk
private-key: ${{ secrets.SEMANTIC_RELEASE_APP_PRIVATE_KEY }}
permission-contents: write
permission-issues: write
permission-pull-requests: write
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v6
with:
extra_plugins: |
@semantic-release/exec
@semantic-release/git
env:
# Repo-scoped token whose identity bypasses PR protection on main, so the
# @semantic-release/git version-bump commit can be pushed to the protected branch.
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GH_TOKEN }}
# The app pushes the @semantic-release/git version-bump commit and, unlike
# GITHUB_TOKEN, creates a release that triggers `release` workflows.
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
Loading