From 6093fd06a2d8216b356c712e143080bceae2b977 Mon Sep 17 00:00:00 2001 From: CzBiX Date: Sat, 13 May 2023 18:21:26 +0800 Subject: [PATCH] fix actions --- .github/workflows/release.yml | 4 +++- .github/workflows/test.yml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a415718..60996fd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,7 +15,9 @@ jobs: with: node-version: '16' cache: yarn - - run: yarn install --frozen-lockfile + - run: | + corepack enable + yarn install --frozen-lockfile - 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 2f68383..5fc6f52 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,9 @@ jobs: with: node-version: '16' cache: yarn - - run: yarn install --frozen-lockfile + - run: | + corepack enable + yarn install --frozen-lockfile - run: yarn run lint --no-fix --max-warnings 0 - run: yarn run test:unit \ No newline at end of file