mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
[ci] retry logic
This commit is contained in:
parent
7d26c3b138
commit
30101c04aa
2 changed files with 5 additions and 4 deletions
3
.github/actions/build/action.yml
vendored
3
.github/actions/build/action.yml
vendored
|
|
@ -89,8 +89,7 @@ runs:
|
|||
if [ -z "$APPLE_ID" ] ; then unset APPLE_ID ; fi
|
||||
if [ -z "$APPLE_APP_SPECIFIC_PASSWORD" ] ; then unset APPLE_APP_SPECIFIC_PASSWORD ; fi
|
||||
|
||||
# Retry if there's a fetch failure
|
||||
yarn run dist || yarn run dist || yarn run dist
|
||||
yarn run dist
|
||||
env:
|
||||
GH_TOKEN: ${{ env.GH_TOKEN }}
|
||||
CSC_LINK: ${{ env.MAC_CERT_P12_BASE64 }}
|
||||
|
|
|
|||
|
|
@ -16,9 +16,11 @@
|
|||
"test:unit": "ava",
|
||||
"test:unit:watch": "yarn run test:unit -- --watch",
|
||||
"test:e2e": "ava --config ava-e2e.config.js",
|
||||
"postinstall": "yarn run v8-snapshot && webpack --config-name hyper-app && electron-builder install-app-deps && yarn run rebuild-node-pty && cpy --cwd=target node_modules \"../../app/\" && husky && yarn run generate-schema",
|
||||
"postinstall": "yarn run v8-snapshot && webpack --config-name hyper-app && yarn run install-app-deps-with-retry && yarn run rebuild-node-pty && cpy --cwd=target node_modules \"../../app/\" && husky && yarn run generate-schema",
|
||||
"install-app-deps-with-retry": "electron-builder install-app-deps || electron-builder install-app-deps || electron-builder install-app-deps",
|
||||
"rebuild-node-pty": "electron-rebuild -f -o node-pty -m target",
|
||||
"dist": "yarn run build && electron-builder -p never",
|
||||
"dist": "yarn run build && yarn run electron-builder-with-retry",
|
||||
"electron-builder-with-retry": "electron-builder -p never || electron-builder -p never || electron-builder -p never",
|
||||
"clean": "node ./bin/rimraf-standalone.js node_modules && node ./bin/rimraf-standalone.js ./app/node_modules && node ./bin/rimraf-standalone.js ./app/renderer && node ./bin/rimraf-standalone.js ./target && node ./bin/rimraf-standalone.js ./dist",
|
||||
"v8-snapshot": "cross-env npm_config_arch=x64 yarn run v8-snapshot:arch && cross-env npm_config_arch=arm64 yarn run v8-snapshot:arch",
|
||||
"v8-snapshot:arch": "yarn run mk-snapshot && yarn run cp-snapshot",
|
||||
|
|
|
|||
Loading…
Reference in a new issue