From cf712916b004aab4b72eed837b14ac8d8be70827 Mon Sep 17 00:00:00 2001 From: "Hana (Hyang-Ah) Kim" Date: Wed, 18 Mar 2020 14:01:13 -0400 Subject: [PATCH] github/workflows: use ... as version Marketplace does not allow prerelease annotation (but `vsce package` command allows it). Use the four digit semver instead. And record the commit hash to the CHANGELOG.md since we cannot rely on the version string to encode the info. --- build/all.bash | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build/all.bash b/build/all.bash index f4e65931d8..57fe5122f7 100755 --- a/build/all.bash +++ b/build/all.bash @@ -52,7 +52,8 @@ run_test_in_docker() { } prepare_nightly() { - local VER=`git log -1 --format=%cd-%h --date="format:%Y.%-m.%-d"` + local VER=`git log -1 --format=%cd --date="format:%Y.%-m.%-d.%-H"` + local COMMIT=`git log -1 --format=%H` echo "**** Preparing nightly release : $VER ***" # Update package.json @@ -68,7 +69,8 @@ prepare_nightly() { .bugs.url="https://github.com/golang/vscode-go/issues" ') > /tmp/package.json && mv /tmp/package.json package.json - # TODO(hyangah): Update README.md and CHANGELOG.md + # TODO(hyangah): Update README.md + echo "**Release ${VER} @ ${COMMIT}** " | cat - CHANGELOG.md > /tmp/CHANGELOG.md.new && mv /tmp/CHANGELOG.md.new CHANGELOG.md } main() {