Skip to content

Commit

Permalink
ci: Adjust release to use app token to allow rules bypass
Browse files Browse the repository at this point in the history
  • Loading branch information
davelosert committed Aug 22, 2024
1 parent 33dcd6f commit 534197e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ on:
workflow_dispatch:

permissions:
contents: write
issues: write
pull-requests: write
contents: read

jobs:
release:
Expand All @@ -23,7 +21,13 @@ jobs:
run: npm ci
- name: Build
run: npm run build
- name: Get Release Token
id: get_workflow_token
uses: peter-murray/workflow-application-token-action@v3
with:
application_id: ${{ secrets.RELEASE_APP_ID }}
application_private_key: ${{ secrets.RELEASE_APP_CERT }}
- name: Semantic Release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.get_workflow_token.outputs.token }}

0 comments on commit 534197e

Please sign in to comment.