From 75366c2518f1582e20a34a453ce8732e99be08b0 Mon Sep 17 00:00:00 2001 From: undefined Date: Mon, 28 Mar 2022 04:01:13 +0800 Subject: [PATCH] ci: try to fix cache --- .github/workflows/build.yml | 13 +++++++++---- .../ui-default/components/zipDownloader/index.js | 1 + 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 86403008..189463d1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/packages/ui-default/components/zipDownloader/index.js b/packages/ui-default/components/zipDownloader/index.js index 0abb8269..56ea2f88 100644 --- a/packages/ui-default/components/zipDownloader/index.js +++ b/packages/ui-default/components/zipDownloader/index.js @@ -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) {