diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0492a03d..bbb144c8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,6 +28,7 @@ jobs: - Node.js 14.x - Node.js 15.x - Node.js 16.x + - Node.js 18.x include: - name: Node.js 0.10 @@ -97,6 +98,9 @@ jobs: - name: Node.js 16.x node-version: "16.7" + - name: Node.js 18.x + node-version: "18.18" + steps: - uses: actions/checkout@v3 @@ -107,7 +111,12 @@ jobs: dirname "$(nvm which ${{ matrix.node-version }})" >> "$GITHUB_PATH" - name: Configure npm - run: npm config set shrinkwrap false + run: | + if [[ "$(npm config get package-lock)" == "true" ]]; then + npm config set package-lock false + else + npm config set shrinkwrap false + fi - name: Remove npm module(s) ${{ matrix.npm-rm }} run: npm rm --silent --save-dev ${{ matrix.npm-rm }}