diff --git a/.github/workflows/continuous-integration.yaml b/.github/workflows/continuous-integration.yaml index 7d0f816f..455f2b38 100644 --- a/.github/workflows/continuous-integration.yaml +++ b/.github/workflows/continuous-integration.yaml @@ -35,8 +35,12 @@ jobs: uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} + - name: Update NPM (Node.js v10) + if: matrix.node-version == 10 + run: npm install --global npm@7 - name: Update NPM - run: npm install --global npm + if: matrix.node-version != 10 + run: npm install --global npm@8 - name: Bootstrap project if: ${{ matrix.node-version != '8.11.1' }} run: npm ci --ignore-scripts diff --git a/.travis.yml b/.travis.yml index 7d225424..32e63ff4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,13 @@ node_js: - 12 - 14 - 16 -before_install: npm install --global npm +before_install: | + NODEJS_VERSION=$(node --version) + if ['v10' == $(NODEJS_VERSION%%.* ] + then + npm install --global npm@7 + else + npm install --global npm@8 script: - npm run --ignore-scripts build - npm test --ignore-scripts