build: tag correction npm publishes as latest

This commit is contained in:
Peter Steinberger
2026-03-23 17:42:02 -07:00
parent 00d586b2ce
commit 5cb8e33a31
2 changed files with 4 additions and 0 deletions

View File

@@ -16,6 +16,8 @@ release_channel="stable"
if [[ "${package_version}" == *-beta.* ]]; then
publish_cmd=(npm publish --access public --tag beta --provenance)
release_channel="beta"
elif [[ "${package_version}" == *-* ]]; then
publish_cmd=(npm publish --access public --tag latest --provenance)
fi
echo "Resolved package version: ${package_version}"

View File

@@ -23,6 +23,8 @@ release_channel="stable"
if [[ "${package_version}" == *-beta.* ]]; then
publish_cmd=(npm publish --access public --tag beta --provenance)
release_channel="beta"
elif [[ "${package_version}" == *-* ]]; then
publish_cmd=(npm publish --access public --tag latest --provenance)
fi
echo "Resolved package dir: ${package_dir}"