mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 09: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 {
|
||||
meta = require(`../${name}/package.json`);
|
||||
if (!meta.private) {
|
||||
const version = await latest(meta.name, { version: tag });
|
||||
if (gt(meta.version, version)) bumpMap[name] = meta.version;
|
||||
try {
|
||||
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) {
|
||||
console.error(e);
|
||||
|
||||
File renamed without changes.
@@ -9,7 +9,7 @@
|
||||
"maxmind": "^4.3.1"
|
||||
},
|
||||
"scripts": {
|
||||
"prepublish": "./prepublish.sh"
|
||||
"prepare": "./download.sh"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"hydrooj": "^2.15.0"
|
||||
|
||||
Reference in new issue
Block a user