@arcadible/github-release-tools 1.0.38 → 1.0.40-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/src/assert-tag.js +6 -6
package/npm-shrinkwrap.json
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"name": "@arcadible/github-release-tools",
|
|
25
|
-
"version": "1.0.
|
|
25
|
+
"version": "1.0.40-next.0"
|
|
26
26
|
},
|
|
27
27
|
"node_modules/semver": {
|
|
28
28
|
"bin": {
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
"requires": true,
|
|
41
|
-
"version": "1.0.
|
|
41
|
+
"version": "1.0.40-next.0"
|
|
42
42
|
}
|
package/package.json
CHANGED
package/src/assert-tag.js
CHANGED
|
@@ -40,13 +40,13 @@ run(() => {
|
|
|
40
40
|
if (!tag.startsWith(PREFIX)) {
|
|
41
41
|
fail(GIT_TAG_INVALID, invalid, `A release tag is ${PREFIX}<version>.`);
|
|
42
42
|
}
|
|
43
|
-
|
|
43
|
+
// the version exactly as `arc deploy git` writes it: semver reads
|
|
44
|
+
// `v1.2.0`, ` 1.2.0`, and `1.2.0+build` as 1.2.0 too, which would let a
|
|
45
|
+
// tag pushed by hand release under a name that isn't the version's
|
|
46
|
+
const named = tag.slice(PREFIX.length);
|
|
47
|
+
const release = validSemver(named) === named ? named : null;
|
|
44
48
|
if (!release) {
|
|
45
|
-
fail(
|
|
46
|
-
GIT_TAG_INVALID,
|
|
47
|
-
invalid,
|
|
48
|
-
`${tag.slice(PREFIX.length)} isn't a version.`,
|
|
49
|
-
);
|
|
49
|
+
fail(GIT_TAG_INVALID, invalid, `${named} isn't a version.`);
|
|
50
50
|
}
|
|
51
51
|
const version = validSemver(readManifest(file)?.game?.version);
|
|
52
52
|
if (release !== version) {
|