Skip to content

Commit 56a9b9a

Browse files
committed
ci: fix ci error on npm 8
1 parent b19c8dd commit 56a9b9a

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

.github/workflows/codecov.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
key: lock-${{ github.sha }}
1717

1818
- name: create package-lock.json
19-
run: npm i --package-lock-only
19+
run: npm i --package-lock-only --ignore-scripts
2020

2121
- name: hack for singe file
2222
run: |

.github/workflows/test.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: checkout
10-
uses: actions/checkout@master
10+
uses: actions/checkout@v2
1111

1212
- name: cache package-lock.json
1313
uses: actions/cache@v2
@@ -16,7 +16,7 @@ jobs:
1616
key: lock-${{ github.sha }}
1717

1818
- name: create package-lock.json
19-
run: npm i --package-lock-only
19+
run: npm i --package-lock-only --ignore-scripts
2020

2121
- name: hack for singe file
2222
run: |
@@ -40,7 +40,7 @@ jobs:
4040
runs-on: ubuntu-latest
4141
steps:
4242
- name: checkout
43-
uses: actions/checkout@master
43+
uses: actions/checkout@v2
4444

4545
- name: restore cache from package-lock.json
4646
uses: actions/cache@v2
@@ -74,7 +74,7 @@ jobs:
7474
runs-on: ubuntu-latest
7575
steps:
7676
- name: checkout
77-
uses: actions/checkout@master
77+
uses: actions/checkout@v2
7878

7979
- name: restore cache from package-lock.json
8080
uses: actions/cache@v2
@@ -96,12 +96,12 @@ jobs:
9696
runs-on: ubuntu-latest
9797
steps:
9898
- name: checkout
99-
uses: actions/checkout@master
99+
uses: actions/checkout@v2
100100

101101
# with:
102102
# token: ${{ secrets.ACCESS_TOKEN }}
103103
# - name: Checkout submodules
104-
# uses: actions/checkout@master
104+
# uses: actions/checkout@v2
105105
# with:
106106
# repository: tangjinzhou/antdv-demo
107107
# token: ${{ secrets.ACCESS_TOKEN }}

.vcmrc

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
"perf",
1010
"test",
1111
"chore",
12-
"revert"
12+
"revert",
13+
"ci"
1314
],
1415
"warnOnFail": false,
1516
"autoFix": false
16-
}
17+
}

0 commit comments

Comments
 (0)