Skip to content

Commit 0aa9e96

Browse files
authored
fix(actions): ensure dry-run actions have NPM_TOKEN (#39)
1 parent 85181e0 commit 0aa9e96

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/version-bump.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,13 @@ jobs:
6060
- name: Test Release (Dry Run)
6161
env:
6262
GITHUB_TOKEN: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
63+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
6364
run: pnpm release:dry-run
6465

6566
- name: Update or Create GitHub Release Draft
6667
env:
6768
GITHUB_TOKEN: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
69+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
6870
run: |
6971
# Get the next version from semantic-release
7072
VERSION=$(npx semantic-release --dry-run | grep -oP 'The next release version is \K[0-9]+\.[0-9]+\.[0-9]+' || echo "")

0 commit comments

Comments
 (0)