Skip to content

Commit 5e089d0

Browse files
committed
fix(release): improve error message for missing NODE_AUTH_TOKEN in release workflow
1 parent 7f9e745 commit 5e089d0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,11 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Check NPM Token
17-
id: check-token
1817
run: |
1918
if [ -z "${{ secrets.NODE_AUTH_TOKEN }}" ]; then
20-
echo "npm-token-exists=false" >> $GITHUB_OUTPUT
21-
echo "⚠️ NODE_AUTH_TOKEN secret is not set. Skipping release steps."
19+
echo "❌ NODE_AUTH_TOKEN secret is not set. Please add it to repository secrets."
20+
exit 1
2221
else
23-
echo "npm-token-exists=true" >> $GITHUB_OUTPUT
2422
echo "✅ NODE_AUTH_TOKEN secret is available."
2523
fi
2624

0 commit comments

Comments
 (0)