Skip to content

Commit

Permalink
ci: pin NPM major version
Browse files Browse the repository at this point in the history
see: loopbackio/cicd#6
Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
  • Loading branch information
achrinza committed Nov 24, 2021
1 parent e457361 commit f12ee24
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
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion .travis.yml
Expand Up @@ -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

0 comments on commit f12ee24

Please sign in to comment.