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" }