ci: try to fix cache

pull/334/head
undefined 3 years ago
parent b43d61be82
commit 75366c2518

@ -23,11 +23,16 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Cache node modules
uses: actions/cache@v2
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- uses: actions/cache@v3
id: yarn-cache
with:
path: .yarn/cache
key: ${{ runner.os }}-deps-${{ hashFiles('**/package.json') }}
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Config
run: |
[[ ! -z "${{secrets.NPM_TOKEN}}" ]] && echo "npmAuthToken: ${{secrets.NPM_TOKEN}}" >> .yarnrc.yml

@ -54,6 +54,7 @@ export default async function download(filename, targets) {
stopDownload();
Notification.error(i18n('Download Error', [target.filename, e.toString()]));
}
return {};
}
const handles = [];
for (const target of targets) {

Loading…
Cancel
Save