Skip to content

Commit

Permalink
ci: pin NPM version
Browse files Browse the repository at this point in the history
see: loopbackio/cicd#6

Signed-off-by: Rifa Achrinza <[email protected]>
  • Loading branch information
achrinza committed Nov 24, 2021
1 parent 979e956 commit efd0b39
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@ jobs:
mongodb-version: ${{ matrix.mongodb-version }}
- name: Bootstrap project
run: npm ci --ignore-scripts
- name: Update NPM (Node.js v10)
if: node-version == 10
run: npm install --global npm@7
- name: Update NPM
run: npm install --global npm
if: node-version != 10
run: npm install --gloal npm@8
- name: Run tests
run: npm test --ignore-scripts
- name: Publish coverage report to Coveralls
Expand Down
8 changes: 7 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ before_install: |
exit 2
fi
done
NODEJS_VERSION=$(node --version)
if [ 'v10' == ${NODEJS_VERSION%%.*} ]
then
npm install --global npm@7
else
npm install --global npm@8
fi
install:
- npm install --global npm
- npm ci --ignore-scripts
script: npm test --ignore-scripts

0 comments on commit efd0b39

Please sign in to comment.