Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6dc6f3e

Browse files
committed
assert npm token
1 parent f6d52c8 commit 6dc6f3e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎.github/workflows/publish.yml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ jobs:
2626

2727
- name: Publish package to GitHub Package Registry
2828
run: echo //npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }} > .npmrc && npm publish --registry=https://npm.pkg.github.com
29+
30+
- name: Asserts NPM token to not be empty
31+
run: if [ -z "${{ secrets.NPM_TOKEN }}" ];
32+
then
33+
echo "NPM_TOKEN is not set";
34+
exit 1;
35+
fi
2936

3037
- name: Publish package to NPM
3138
run: echo //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }} > .npmrc && npm publish --registry=https://registry.npmjs.org

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /