We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 189efc3 + 30763e2 commit ad57746Copy full SHA for ad57746
1 file changed
ui/packages/shared/.gitlab-ci.yml
@@ -74,6 +74,10 @@ publish-shared-release:
74
- npm version "$VERSION" --no-git-tag-version --allow-same-version
75
- pnpm run pack
76
77
- # Publish
+ # Publish: stable releases go to the "latest" dist-tag, prereleases (e.g. 4.2.0-rc.1)
78
+ # go to a channel dist-tag matching their identifier (rc/beta/alpha), since npm refuses
79
+ # to publish a prerelease version to "latest" without an explicit --tag.
80
- TARBALL=$(ls postgres.ai-shared-*.tgz)
- - pnpm publish "$TARBALL" --no-git-checks
81
+ - DIST_TAG=latest
82
+ - case "$VERSION" in *-*) PRERELEASE=${VERSION#*-}; DIST_TAG=${PRERELEASE%%.*} ;; esac
83
+ - pnpm publish "$TARBALL" --no-git-checks --tag "$DIST_TAG"
0 commit comments