Skip to content

Commit 27ab487

Browse files
authored
ci(release): use installation access token to checkout and push back changes (#26)
1 parent b287cb8 commit 27ab487

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,14 @@ jobs:
1414
name: release
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v3
18-
- uses: actions/setup-node@v3
19-
with:
20-
cache: npm
21-
node-version: lts/*
22-
- run: npm ci
23-
- run: npm run build
24-
- uses: ./ # Uses the action in the root directory
17+
- uses: actions/create-github-app-token@v1
2518
id: app-token
2619
with:
2720
app_id: ${{ vars.RELEASER_APP_ID }}
2821
private_key: ${{ secrets.RELEASER_APP_PRIVATE_KEY }}
22+
- uses: actions/checkout@v3
23+
with:
24+
token: ${{ steps.app-token.outputs.token }}
2925
- run: npm install --no-save @semantic-release/git semantic-release-plugin-github-breaking-version-tag
3026
- run: npx semantic-release
3127
env:

0 commit comments

Comments
 (0)