Skip to content

Commit

Permalink
ci: do not update NPM for Node.js v17
Browse files Browse the repository at this point in the history
Signed-off-by: Rifa Achrinza <[email protected]>
  • Loading branch information
achrinza committed Dec 11, 2021
1 parent f5a41a4 commit d5970fa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ node_js:
- 17
before_install: |
NODEJS_VERSION=$(node --version)
if [ 'v8' == ${NODEJS_VERSION%%.*} ]
NODEJS_MAJOR_VERSION=${NODEJS_VERSION%%.*}
if [ 'v8' == "$NODEJS_MAJOR_VERSION" ]
then
npm install --global npm@5
elif [ 'v10' == ${NODEJS_VERSION%%.*} ]
elif [ 'v10' == "$NODEJS_MAJOR_VERSION" ]
then
npm install --global npm@7
else
elif [ 'v17' != "$NODEJS_MAJOR_VERSION" ]
npm install --global npm@8
fi
script:
Expand Down

0 comments on commit d5970fa

Please sign in to comment.