Skip to content

Commit 165dd10

Browse files
committed
fix: ensure new release artifacts get published
The default GITHUB_TOKEN doesn't trigger further pipelines. As a consequence, the automatically created release did not trigger the publish pipeline on the newly created tag. This commit migrates to a personal access token to avoid this as described in: https://docs.github.com/en/actions/using-workflows/triggering-a-workflow
1 parent 8bc37f9 commit 165dd10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
run: npm ci
4444
- name: Dry-run release
4545
env:
46-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
4747
# We need to convince semantic-release to not pick up some
4848
# configuration from the CI environment by removing the variable that
4949
# is used for CI detection.
@@ -71,5 +71,5 @@ jobs:
7171
run: npm ci
7272
- name: Release
7373
env:
74-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
74+
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
7575
run: npx semantic-release

0 commit comments

Comments
 (0)