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
20 changes: 14 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,19 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Generate release token
id: generate_token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ vars.RELEASE_BOT_APP_ID }}
private-key: ${{ secrets.RELEASE_BOT_PRIVATE_KEY }}

- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
token: ${{ steps.generate_token.outputs.token }}

- name: Setup pnpm
uses: pnpm/action-setup@v4
Expand All @@ -47,9 +55,9 @@ jobs:

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_AUTHOR_NAME: github-actions[bot]
GIT_AUTHOR_EMAIL: github-actions[bot]@users.noreply.github.com
GIT_COMMITTER_NAME: github-actions[bot]
GIT_COMMITTER_EMAIL: github-actions[bot]@users.noreply.github.com
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
GIT_AUTHOR_NAME: TxnLab Release Bot[bot]
GIT_AUTHOR_EMAIL: txnlab-release-bot[bot]@users.noreply.github.com
GIT_COMMITTER_NAME: TxnLab Release Bot[bot]
GIT_COMMITTER_EMAIL: txnlab-release-bot[bot]@users.noreply.github.com
run: npx semantic-release