Skip to content

Commit

Permalink
ci: use app to push release changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dvirtz committed Jul 14, 2024
1 parent d60c010 commit a597433
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,24 @@ jobs:
run: yarn lint

release:
needs: lint
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.SEMANTIC_RELEASE_APP_ID }}
private-key: ${{ secrets.SEMANTIC_RELEASE_PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ steps.app-token.outputs.token }}
- name: Enable Corepack
run: corepack enable
- name: Setup Node.js
Expand Down

0 comments on commit a597433

Please sign in to comment.