mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
w: ignore VersionNotFoundError
This commit is contained in:
1 parent
b9e08c7e93
commit
86a6f6ba0b
3 files changed
+8
-3
No files matched your search
+7
-2
@@ -37,8 +37,13 @@ if (CI && (!tag || GITHUB_EVENT_NAME !== 'push')) {
|
|||||||
try {
|
try {
|
||||||
meta = require(`../${name}/package.json`);
|
meta = require(`../${name}/package.json`);
|
||||||
if (!meta.private) {
|
if (!meta.private) {
|
||||||
const version = await latest(meta.name, { version: tag });
|
try {
|
||||||
if (gt(meta.version, version)) bumpMap[name] = meta.version;
|
const version = await latest(meta.name, { version: tag });
|
||||||
|
if (gt(meta.version, version)) bumpMap[name] = meta.version;
|
||||||
|
} catch (e) {
|
||||||
|
if (e.name === 'VersionNotFoundError') bumpMap[name] = meta.version;
|
||||||
|
else throw e;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
|
|||||||
File renamed without changes.
@@ -9,7 +9,7 @@
|
|||||||
"maxmind": "^4.3.1"
|
"maxmind": "^4.3.1"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepublish": "./prepublish.sh"
|
"prepare": "./download.sh"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"hydrooj": "^2.15.0"
|
"hydrooj": "^2.15.0"
|
||||||
|
|||||||
Reference in new issue
Block a user