1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

Always publish to next tag

This ensures that anyone who wants the latest version (pre-release or final
release) can always use the `next` tag.
This commit is contained in:
J. Ryan Stinnett
2020-02-14 10:46:28 +00:00
parent ce668d051c
commit f27d03a6bc

View File

@@ -294,14 +294,15 @@ fi
rm "${release_text}" rm "${release_text}"
rm "${latest_changes}" rm "${latest_changes}"
npm_publish_flags=''
if [ $prerelease -eq 1 ]; then
# Tag prereleases as `next` so the last stable release remains the default
npm_publish_flags='--tag next'
fi
# Login and publish continues to use `npm`, as it seems to have more clearly # Login and publish continues to use `npm`, as it seems to have more clearly
# defined options and semantics than `yarn` for writing to the registry. # defined options and semantics than `yarn` for writing to the registry.
npm publish $npm_publish_flags # Tag both releases and prereleases as `next` so the last stable release remains
# the default.
npm publish --tag next
if [ $prerelease -eq 0 ]; then
# For a release, also publish to the default `latest` tag.
npm publish
fi
if [ -z "$skip_jsdoc" ]; then if [ -z "$skip_jsdoc" ]; then
echo "generating jsdocs" echo "generating jsdocs"