Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
github/workflows: use <year>.<month>.<day>.<hour> as version
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
hyangah committed Mar 18, 2020
1 parent 2c09aca commit cf71291
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build/all.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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() {
Expand Down

0 comments on commit cf71291

Please sign in to comment.