Skip to content

Commit cf71291

Browse files
committed
github/workflows: use <year>.<month>.<day>.<hour> 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.
1 parent 2c09aca commit cf71291

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build/all.bash

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ run_test_in_docker() {
5252
}
5353

5454
prepare_nightly() {
55-
local VER=`git log -1 --format=%cd-%h --date="format:%Y.%-m.%-d"`
55+
local VER=`git log -1 --format=%cd --date="format:%Y.%-m.%-d.%-H"`
56+
local COMMIT=`git log -1 --format=%H`
5657
echo "**** Preparing nightly release : $VER ***"
5758

5859
# Update package.json
@@ -68,7 +69,8 @@ prepare_nightly() {
6869
.bugs.url="https://github.com/golang/vscode-go/issues"
6970
') > /tmp/package.json && mv /tmp/package.json package.json
7071

71-
# TODO(hyangah): Update README.md and CHANGELOG.md
72+
# TODO(hyangah): Update README.md
73+
echo "**Release ${VER} @ ${COMMIT}** " | cat - CHANGELOG.md > /tmp/CHANGELOG.md.new && mv /tmp/CHANGELOG.md.new CHANGELOG.md
7274
}
7375

7476
main() {

0 commit comments

Comments
 (0)