Skip to content

Commit a52f486

Browse files
committed
ci: update configure npm step to support newer npm versions
1 parent 95fe297 commit a52f486

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,12 @@ jobs:
158158
dirname "$(nvm which ${{ matrix.node-version }})" >> "$GITHUB_PATH"
159159
160160
- name: Configure npm
161-
run: npm config set shrinkwrap false
161+
run: |
162+
if [[ "$(npm config get package-lock)" == "true" ]]; then
163+
npm config set package-lock false
164+
else
165+
npm config set shrinkwrap false
166+
fi
162167
163168
- name: Remove npm module(s) ${{ matrix.npm-rm }}
164169
run: npm rm --silent --save-dev ${{ matrix.npm-rm }}

0 commit comments

Comments
 (0)