Skip to content

Commit

Permalink
ci: use github app
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris authored Jan 20, 2023
1 parent f2b1120 commit 1a9fb45
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,22 @@ jobs:
permissions:
contents: write
steps:
- uses: peaceiris/actions-github-app-token@v1
id: app
with:
app_id: ${{ secrets.GH_APP_ID }}
private_key: ${{ secrets.GH_APP_PRIVATE_KEY }}

- uses: actions/checkout@v3
with:
token: ${{ steps.app.outputs.token }}
fetch-depth: 0

- uses: peaceiris/workflows/[email protected]

- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.app.outputs.token }}
run: |
CURRENT_TAG=$(git describe --abbrev=0)
NEW_VERSION=$(npm_config_yes=true npx semver "${CURRENT_TAG}" --increment ${{ github.event.inputs.semver_type }})
Expand Down

0 comments on commit 1a9fb45

Please sign in to comment.