From d61085979fedb8159bc6e6ba96a37e802c88da2d Mon Sep 17 00:00:00 2001 From: CzBiX Date: Sat, 13 May 2023 18:06:02 +0800 Subject: [PATCH] fix actions --- .github/workflows/release.yml | 7 +------ .github/workflows/test.yml | 7 +------ package.json | 3 ++- 3 files changed, 4 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 694a2ec..a415718 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,13 +14,8 @@ jobs: uses: actions/setup-node@v2 with: node-version: '16' - - uses: actions/cache@v3 - id: cache - with: - path: node_modules - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + cache: yarn - run: yarn install --frozen-lockfile - if: steps.cache.outputs.cache-hit != 'true' - name: Set env run: echo "RELEASE_FILE=qb-web-${GITHUB_REF#refs/*/}.zip" >> $GITHUB_ENV diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 51321f3..2f68383 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,13 +11,8 @@ jobs: uses: actions/setup-node@v2 with: node-version: '16' - - uses: actions/cache@v3 - id: cache - with: - path: node_modules - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + cache: yarn - run: yarn install --frozen-lockfile - if: steps.cache.outputs.cache-hit != 'true' - run: yarn run lint --no-fix --max-warnings 0 - run: yarn run test:unit \ No newline at end of file diff --git a/package.json b/package.json index 166304f..ca781a9 100644 --- a/package.json +++ b/package.json @@ -60,5 +60,6 @@ "*.{js,vue,ts}": [ "vue-cli-service lint" ] - } + }, + "packageManager": "yarn@3.5.0" }