Skip to content

Commit 696e58f

Browse files
chore(ci):added new node versions
1 parent 68ee980 commit 696e58f

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ 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+
3337

3438
include:
3539
- name: Node.js 0.8
@@ -107,6 +111,14 @@ jobs:
107111
- name: Node.js 17.x
108112
node-version: "17.9"
109113

114+
- name: Node.js 18.x
115+
node-version: "18.19.1"
116+
117+
- name: Node.js 19.x
118+
node-version: "19.9.0"
119+
120+
- name: Node.js 20.x
121+
node-version: "20.11"
110122
steps:
111123
- uses: actions/checkout@v2
112124

@@ -123,7 +135,12 @@ jobs:
123135
dirname "$(nvm which ${{ matrix.node-version }})" >> "$GITHUB_PATH"
124136
125137
- name: Configure npm
126-
run: npm config set shrinkwrap false
138+
run: |
139+
if [[ "$(cut -d. -f1 <<< "${{ matrix.node-version }}")" -le 17 ]]; then
140+
npm config set shrinkwrap false
141+
else
142+
npm config set package-lock false
143+
fi
127144
128145
- name: Remove npm module(s) ${{ matrix.npm-rm }}
129146
run: npm rm --silent --save-dev ${{ matrix.npm-rm }}

0 commit comments

Comments
 (0)