Skip to content

Commit d585479

Browse files
committed
github/workflows: use <year>.<month>.<day>.<hour> as version
Marketplace does not allow prerelease annotation. That caused the release error like https://github.com/golang/vscode-go/runs/517074211?check_suite_focus=true Use the four digit semver instead. Note the current `vsce package` command allows prerelease annotation but does not allow four digit semver format currently. And record the commit hash to the CHANGELOG.md since we cannot rely on the version string to encode the info. Update #5 Change-Id: Id45fc822bb0d5b6b6750e28bf71bbb49f3eb97be GitHub-Last-Rev: cf71291 GitHub-Pull-Request: #12 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/223961 Reviewed-by: Rebecca Stambler <[email protected]>
1 parent 2c09aca commit d585479

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)