Skip to content

Commit

Permalink
fix: gh token for releasing package (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
xShteff authored Jul 25, 2024
1 parent 52c3026 commit 112301a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ on:
branches:
- main
workflow_dispatch:

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

name: Release
jobs:
Expand All @@ -25,15 +31,9 @@ jobs:
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Request GitHub token
id: get_workflow_token
uses: peter-murray/[email protected]
with:
application_id: ${{ secrets.APP_ID }}
application_private_key: ${{ secrets.APPLICATION_PRIVATE_KEY }}
- name: Release
env:
GITHUB_TOKEN: ${{ steps.get_workflow_token.outputs.token }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPMJS_ACCESS_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_ACCESS_TOKEN }}
run: yarn release

0 comments on commit 112301a

Please sign in to comment.