Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Commit

Permalink
ci: generate token first and use for clone
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Dec 16, 2021
1 parent cb26f92 commit 34791b8
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,18 @@ jobs:
- build
- test
steps:
- name: Generate a GitHub token
uses: tibdex/github-app-token@v1
id: generate_token
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}

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

- name: setup nodejs
Expand All @@ -85,13 +93,6 @@ jobs:
- name: package assets
run: npm run package

- name: Generate a GitHub token
uses: tibdex/github-app-token@v1
id: generate_token
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}

- name: release
run: npx semantic-release
env:
Expand Down

0 comments on commit 34791b8

Please sign in to comment.