There was an error while loading. Please reload this page.
latest-v<major>
1 parent 5cd0708 commit 16e9727Copy full SHA for 16e9727
1 file changed
publish-npm/action.yml
@@ -79,12 +79,12 @@ runs:
79
echo "Skipping publish: $name@$version is already in the registry"
80
else
81
# Use `latest` only when our version is strictly newer than the registry's
82
- # current latest; otherwise publish the older version under a `latest-<major>`
+ # current latest; otherwise publish the older version under a `latest-v<major>`
83
# tag so it stays installable without moving `latest`.
84
if [[ -z "$latest_version" ]] || semver "$version" -r ">$latest_version" --include-prerelease; then
85
tag="latest"
86
87
- tag="latest-${version%%.*}"
+ tag="latest-v${version%%.*}"
88
echo "::notice ::$version is not newer than registry latest ($latest_version); publishing under '--tag $tag'"
89
fi
90
0 commit comments