Skip to content

Commit ca4c97e

Browse files
ci: fix errors in ci pipeline for node 8 and 9 (#104)
PR-URL: #104
1 parent 97bdf39 commit ca4c97e

File tree

1 file changed

+30
-5
lines changed

1 file changed

+30
-5
lines changed

.github/workflows/ci.yml

+30-5
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ jobs:
3030
- Node.js 15.x
3131
- Node.js 16.x
3232
- Node.js 17.x
33+
- Node.js 18.x
34+
- Node.js 19.x
35+
- Node.js 20.x
36+
- Node.js 21.x
37+
- Node.js 22.x
3338

3439
include:
3540
- name: Node.js 0.8
@@ -75,11 +80,11 @@ jobs:
7580

7681
- name: Node.js 8.x
7782
node-version: "8.17"
78-
83+
7984

8085
- name: Node.js 9.x
8186
node-version: "9.11"
82-
87+
8388

8489
- name: Node.js 10.x
8590
node-version: "10.24"
@@ -107,8 +112,23 @@ jobs:
107112
- name: Node.js 17.x
108113
node-version: "17.6"
109114

115+
- name: Node.js 18.x
116+
node-version: "18.14"
117+
118+
- name: Node.js 19.x
119+
node-version: "19.6"
120+
121+
- name: Node.js 20.x
122+
node-version: "20.12"
123+
124+
- name: Node.js 21.x
125+
node-version: "21.7"
126+
127+
- name: Node.js 22.x
128+
node-version: "22.0"
129+
110130
steps:
111-
- uses: actions/checkout@v2
131+
- uses: actions/checkout@v4
112132

113133
- name: Install Node.js ${{ matrix.node-version }}
114134
shell: bash -eo pipefail -l {0}
@@ -123,7 +143,12 @@ jobs:
123143
dirname "$(nvm which ${{ matrix.node-version }})" >> "$GITHUB_PATH"
124144
125145
- name: Configure npm
126-
run: npm config set shrinkwrap false
146+
run: |
147+
if [[ "$(npm config get package-lock)" == "true" ]]; then
148+
npm config set package-lock false
149+
else
150+
npm config set shrinkwrap false
151+
fi
127152
128153
- name: Remove npm module(s) ${{ matrix.npm-rm }}
129154
run: npm rm --silent --save-dev ${{ matrix.npm-rm }}
@@ -182,7 +207,7 @@ jobs:
182207
needs: test
183208
runs-on: ubuntu-latest
184209
steps:
185-
- name: Uploade code coverage
210+
- name: Upload code coverage
186211
uses: coverallsapp/github-action@master
187212
with:
188213
github-token: ${{ secrets.github_token }}

0 commit comments

Comments
 (0)