Skip to content

Commit 0f0493c

Browse files
committed
chore: reuse token
1 parent 1e4b895 commit 0f0493c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,21 +59,23 @@ jobs:
5959
if: github.event.inputs.release == 'true'
6060
runs-on: ubuntu-latest
6161
steps:
62+
- uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2
63+
id: generate-token
64+
with:
65+
app_id: ${{ secrets.ECOSPARK_APP_ID }}
66+
private_key: ${{ secrets.ECOSPARK_APP_PRIVATE_KEY }}
6267
- uses: actions/checkout@v4
6368
with:
6469
# Need to fetch entire commit history to
6570
# analyze every commit since last release
6671
fetch-depth: 0
72+
# Uses generated token to allow pushing commits back
73+
token: ${{ steps.generate_token.outputs.token }}
6774
- uses: actions/setup-node@v4
6875
with:
6976
node-version: lts/*
7077
cache: npm
7178
- run: npm ci
72-
- uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2
73-
id: generate-token
74-
with:
75-
app_id: ${{ secrets.ECOSPARK_APP_ID }}
76-
private_key: ${{ secrets.ECOSPARK_APP_PRIVATE_KEY }}
7779
- run: npx semantic-release --dry-run
7880
# Don't allow interrupting the release step if the job is cancelled, as it can lead to an inconsistent state
7981
# e.g. git tags were pushed but it exited before `npm publish`

0 commit comments

Comments
 (0)