Skip to content

Commit

Permalink
handle publish for yarn v1
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat committed May 22, 2024
1 parent 43f6a07 commit 52c3609
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,8 @@ if [[ -n "$1" ]]; then
fi
fi

yarn npm publish --tag "$PUBLISH_NPM_TAG"
if [[ "$(yarn --version)" =~ "^1" ]]; then
npm_config__auth=$YARN_NPM_AUTH_TOKEN yarn publish --tag "$PUBLISH_NPM_TAG"
else
yarn npm publish --tag "$PUBLISH_NPM_TAG"
fi

0 comments on commit 52c3609

Please sign in to comment.