github/workflows: use npm install and change version to X.Y.Z format
semver package is unhappy about X.Y.Z.W format of version string
and leave the extension in invalid state. Now make semver happy.
Also, use npm install to ensure all test dependencies are pulled in.
Change-Id: I98fd51b475fce20ef069b50b86a2eb9eba530032
GitHub-Last-Rev: 9bf48fc971e39c37dfd49db739b219f124c79962
GitHub-Pull-Request: golang/vscode-go#16
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/224099
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
diff --git a/build/all.bash b/build/all.bash
index 57fe512..476962e 100755
--- a/build/all.bash
+++ b/build/all.bash
@@ -52,7 +52,10 @@
}
prepare_nightly() {
- local VER=`git log -1 --format=%cd --date="format:%Y.%-m.%-d.%-H"`
+ # Version format: YYYY.MM.DDHH based on the latest commit timestamp.
+ # e.g. 2020.1.510 is the version built based on a commit that was made
+ # on 2020/01/05 10:00
+ 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 ***"