Skip to content

Commit 27618b9

Browse files
authored
feat(release): separate ext release tags/titles (aws#4841)
* feat(release): separate ext release tags/titles * chore(release): allow gh releases for both extensions
1 parent c397f41 commit 27618b9

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

buildspec/release/10changeversion.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ phases:
3333
git add package-lock.json
3434
git commit -m "Release $VERSION"
3535
echo "tagging commit"
36-
git tag -a "v$VERSION" -m "version $VERSION $DATE"
36+
# e.g. amazonq/v1.0.0
37+
git tag -a "${TARGET_EXTENSION}/v${VERSION}" -m "${TARGET_EXTENSION} version $VERSION $DATE"
3738
# cleanup
3839
git clean -fxd
3940
git reset HEAD --hard

buildspec/release/50githubrelease.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,11 @@ phases:
3434
- echo "Writing hash to $HASH_UPLOAD_TARGET"
3535
- echo $HASH > $HASH_UPLOAD_TARGET
3636
- echo "posting $VERSION with sha384 hash $HASH to GitHub"
37-
- RELEASE_MESSAGE="AWS Toolkit for VS Code $VERSION"
37+
- PKG_DISPLAY_NAME=$(grep -m 1 displayName packages/${TARGET_EXTENSION}/package.json | grep -o '[a-zA-z][^\"]\+' | tail -n1)
38+
- RELEASE_MESSAGE="${PKG_DISPLAY_NAME} for VS Code $VERSION"
3839
- |
39-
if [ "$STAGE" = "prod" ] && [ "$TARGET_EXTENSION" = "toolkit" ]; then
40-
gh release create --repo $REPO --title "$VERSION" --notes "$RELEASE_MESSAGE" -- "v$VERSION" "$UPLOAD_TARGET" "$HASH_UPLOAD_TARGET"
40+
if [ "$STAGE" = "prod" ]; then
41+
gh release create --repo $REPO --title "$PKG_DISPLAY_NAME $VERSION" --notes "$RELEASE_MESSAGE" -- "v$VERSION" "$UPLOAD_TARGET" "$HASH_UPLOAD_TARGET"
4142
else
4243
echo "SKIPPED: 'gh release create --repo $REPO'"
4344
fi

0 commit comments

Comments
 (0)