Skip to content

Commit 47a4d94

Browse files
committed
chore(ci): publish_canary logging
1 parent 0c92510 commit 47a4d94

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/scripts/publish_canary.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@
44

55
echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > .npmrc
66

7+
if [[ -z "$NPM_AUTH_TOKEN" ]]; then
8+
echo "Error: NPM_AUTH_TOKEN is not set or is empty"
9+
exit 1
10+
fi
11+
712
TAG='canary' && [[ "$GITHUB_REF_NAME" = 'next' ]] && TAG='next'
8-
echo "Publishing $TAG"
13+
echo "Publishing $TAG from $GITHUB_REF_NAME using npm token ${NPM_AUTH_TOKEN:0:5}"
914

1015
args=()
1116

0 commit comments

Comments
 (0)