Skip to content

Commit fd13828

Browse files
authored
chore: Add dist-tag to release (#1045)
Currently the release build will _always_ add the `latest` tag to every release. If a release is for an old version, this will result in the wrong version being tagged as `latest`. This ENV in the build allows for proper tagging.
1 parent 5f39e1e commit fd13828

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

codebuild/release/publish.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ env:
44
variables:
55
NODE_OPTIONS: "--max-old-space-size=4096"
66
BRANCH: "master"
7+
# An explicit distribution tag
8+
DIST_TAG: "latest"
79
secrets-manager:
810
OTP_SECRET_KEY: npm/aws-crypto-tools-ci-bot/2FA:OTP_SECRET_KEY
911
NPM_TOKEN: npm/aws-crypto-tools-ci-bot/2FA:NPM_TOKEN
@@ -42,7 +44,7 @@ phases:
4244
# This is going to use the OTP generated above and the NPM_TOKEN
4345
# environment variable. This will only publish things that are
4446
# missing from npm. It is therefore safe to run repeatedly.
45-
- npx lerna publish from-package --yes --otp $OTP
47+
- npx lerna publish from-package --yes --otp $OTP --dist-tag $DIST_TAG
4648
# remove after publishing
4749
- rm .npmrc
4850

0 commit comments

Comments
 (0)