From 81e9b8869193e57bb0010d246e086307d656d8a1 Mon Sep 17 00:00:00 2001 From: lixd Date: Thu, 25 Jul 2024 10:54:55 +0800 Subject: [PATCH] build: update github action update yarn config Signed-off-by: lixd --- .github/workflows/buid.yaml | 9 ++++++--- .github/workflows/release.yml | 5 ++++- .github/workflows/unit-test.yml | 8 ++++++-- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/buid.yaml b/.github/workflows/buid.yaml index f349f663..f78831c4 100644 --- a/.github/workflows/buid.yaml +++ b/.github/workflows/buid.yaml @@ -35,12 +35,15 @@ jobs: - name: Setup node env and build uses: actions/setup-node@v3 with: - node-version: 14.17 - cache: 'yarn' - cache-dependency-path: yarn.lock + node-version: 16.13 + #cache: 'yarn' + #cache-dependency-path: yarn.lock - name: Build run: | + yarn cache clean + yarn config set strict-ssl false + rm -rf yarn.lock yarn install yarn run build-with-args true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c832df47..f4e59577 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,7 @@ jobs: - name: Setup node env and build uses: actions/setup-node@v3 with: - node-version: 14.17 + node-version: 16.13 cache: 'yarn' cache-dependency-path: yarn.lock @@ -35,6 +35,9 @@ jobs: - name: Build run: | + yarn cache clean + yarn config set strict-ssl false + rm -rf yarn.lock yarn install yarn run build-with-args true diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 0e9c28c4..bc5a7cd2 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -25,12 +25,16 @@ jobs: - name: Setup node env and build uses: actions/setup-node@v3 with: - node-version: 14.17 + node-version: 16.13 cache: 'yarn' cache-dependency-path: yarn.lock - name: Install dependencies - run: yarn install --frozen-lockfile + run: | + yarn cache clean + yarn config set strict-ssl false + rm -rf yarn.lock + yarn install --frozen-lockfile - name: Unit test run: yarn run test:unit:coverage