Skip to content

Commit

Permalink
add warning for yarn classic
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat committed May 22, 2024
1 parent 52c3609 commit f9085af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ if [[ -n "$1" ]]; then
fi

if [[ "$(yarn --version)" =~ "^1" ]]; then
echo "Warning: Detected Yarn Classic. This action officially supports Yarn v3 and newer. Older versions may break in future versions." >&2
npm_config__auth=$YARN_NPM_AUTH_TOKEN yarn publish --tag "$PUBLISH_NPM_TAG"
else
yarn npm publish --tag "$PUBLISH_NPM_TAG"
Expand Down

0 comments on commit f9085af

Please sign in to comment.