Comparing version 0.23.0 to 0.24.0
@@ -121,2 +121,3 @@ "use strict"; | ||
newV = yield queryAsync("New version", newV); | ||
const newTag = "v" + newV; | ||
cfg.version = newV; | ||
@@ -131,3 +132,3 @@ if (versionFile) { | ||
*/ | ||
export const VERSION = "${newV}" | ||
export const VERSION = "${newTag}" | ||
}`; | ||
@@ -149,3 +150,3 @@ fs.writeFileSync(versionFile, versionSrc, { encoding: "utf-8" }); | ||
yield runGitAsync("commit", "-a", "-m", newV); | ||
yield runGitAsync("tag", "v" + newV); | ||
yield runGitAsync("tag", newTag); | ||
yield runGitAsync("push"); | ||
@@ -167,3 +168,3 @@ yield runGitAsync("push", "--tags"); | ||
const res = yield (0, downloader_1.httpGetJsonAsync)("https://makecode.com/api/gh/" + slug + "/refs?nocache=1"); | ||
const sha = (_b = res === null || res === void 0 ? void 0 : res.refs) === null || _b === void 0 ? void 0 : _b["refs/tags/v" + newV]; | ||
const sha = (_b = res === null || res === void 0 ? void 0 : res.refs) === null || _b === void 0 ? void 0 : _b["refs/tags/" + newTag]; | ||
mkc.log(`refreshed ${newV} -> ${sha}`); | ||
@@ -170,0 +171,0 @@ } |
{ | ||
"name": "makecode", | ||
"version": "0.23.0", | ||
"version": "0.24.0", | ||
"description": "MakeCode (PXT) - web-cached build tool", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
199792
3014