Skip to content

Commit 377dcda

Browse files
committed
chore: test that token is available before continuing.
1 parent 7be1a87 commit 377dcda

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17+
- name: Check NPM_TOKEN presence
18+
run: |
19+
if [ -z "${{ secrets.NPM_TOKEN }}" ]; then
20+
echo "NPM_TOKEN is missing!"
21+
exit 1
22+
else
23+
echo "NPM_TOKEN is available."
24+
fi
25+
1726
- uses: actions/checkout@v3
1827

1928
- uses: actions/setup-node@v4

0 commit comments

Comments
 (0)