Skip to content

Commit

Permalink
explicit npm login
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat committed May 27, 2024
1 parent 4a7d6b6 commit 0e67952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if [[ "$YARN_MAJOR" -ge "3" ]]; then
else
echo "Warning: Did not detect compatible yarn version. This action officially supports Yarn v3 and newer. Falling back to using npm." >&2
export npm_config__auth="$YARN_NPM_AUTH_TOKEN"
PUBLISH_CMD="npm publish --tag $PUBLISH_NPM_TAG"
PUBLISH_CMD="npm login && npm publish --tag $PUBLISH_NPM_TAG"
PACK_CMD="npm pack --pack-destination=/tmp/"
if [[ -f 'yarn.lock' ]]; then
INSTALL_CMD="yarn install --frozen-lockfile"
Expand Down

0 comments on commit 0e67952

Please sign in to comment.