From 56a9b9a40552527966965e839c60d3e377e8f379 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Sun, 5 Dec 2021 14:18:08 +0800 Subject: [PATCH] ci: fix ci error on npm 8 --- .github/workflows/codecov.yml | 2 +- .github/workflows/test.yml | 12 ++++++------ .vcmrc | 5 +++-- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 3f49287fe..5938a11d3 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -16,7 +16,7 @@ jobs: key: lock-${{ github.sha }} - name: create package-lock.json - run: npm i --package-lock-only + run: npm i --package-lock-only --ignore-scripts - name: hack for singe file run: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 402f8c6f3..41eedc76b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout - uses: actions/checkout@master + uses: actions/checkout@v2 - name: cache package-lock.json uses: actions/cache@v2 @@ -16,7 +16,7 @@ jobs: key: lock-${{ github.sha }} - name: create package-lock.json - run: npm i --package-lock-only + run: npm i --package-lock-only --ignore-scripts - name: hack for singe file run: | @@ -40,7 +40,7 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout - uses: actions/checkout@master + uses: actions/checkout@v2 - name: restore cache from package-lock.json uses: actions/cache@v2 @@ -74,7 +74,7 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout - uses: actions/checkout@master + uses: actions/checkout@v2 - name: restore cache from package-lock.json uses: actions/cache@v2 @@ -96,12 +96,12 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout - uses: actions/checkout@master + uses: actions/checkout@v2 # with: # token: ${{ secrets.ACCESS_TOKEN }} # - name: Checkout submodules - # uses: actions/checkout@master + # uses: actions/checkout@v2 # with: # repository: tangjinzhou/antdv-demo # token: ${{ secrets.ACCESS_TOKEN }} diff --git a/.vcmrc b/.vcmrc index 365381499..e73eed9e4 100644 --- a/.vcmrc +++ b/.vcmrc @@ -9,8 +9,9 @@ "perf", "test", "chore", - "revert" + "revert", + "ci" ], "warnOnFail": false, "autoFix": false -} \ No newline at end of file +}