diff --git a/scripts/publish.sh b/scripts/publish.sh index fb8c2c7..5dce66f 100755 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -34,7 +34,8 @@ if [[ -n "$1" ]]; then fi fi -if [[ "$(yarn --version)" =~ "^1" ]]; then +YARN_VERSIN="$(yarn --version)" +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