Skip to content

Commit

Permalink
t
Browse files Browse the repository at this point in the history
  • Loading branch information
Github Actions committed Jan 7, 2024
1 parent ea22fe2 commit d587659
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions publish.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
echo RELEASE_DIST_TAG=$1
if [ ! "$1" ]; then
RELEASE_DIST_TAG=$1
if [ ! "$RELEASE_DIST_TAG" ]; then
echo "missing RELEASE_DIST_TAG variable"
exit 1
fi
Expand All @@ -15,7 +15,8 @@ BOLD='\033[1m'
NORMAL='\033[00m'

echo -e "🚀 Publishing ${BOLD}$PACKAGE_NAME${NORMAL} to $NPM_REGISTRY_URL\n"
npm publish --tag $TAG --registry $NPM_REGISTRY_URL || exit 1
echo "🎉 Published to $NPM_REGISTRY_URL ..."
# npm publish --tag $TAG --registry $NPM_REGISTRY_URL || exit 1
echo "🎉 Published to $NPM_REGISTRY_URL... with tag: $RELEASE_DIST_TAG"
echo "dry..."

echo "✅ DONE"

0 comments on commit d587659

Please sign in to comment.