ci: fix ci error on npm 8

This commit is contained in:
tangjinzhou 2021-12-05 14:18:08 +08:00
parent b19c8dd650
commit 56a9b9a405
3 changed files with 10 additions and 9 deletions

View File

@ -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: |

View File

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

5
.vcmrc
View File

@ -9,8 +9,9 @@
"perf",
"test",
"chore",
"revert"
"revert",
"ci"
],
"warnOnFail": false,
"autoFix": false
}
}