Skip to content

Commit

Permalink
ci: install latest npm for older Node.js versions
Browse files Browse the repository at this point in the history
  • Loading branch information
iiroj committed Nov 25, 2022
1 parent 5f1a00e commit 0c635c7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
# Node.js 14 ships with npm@6, which has trouble installing latest versions of itself
- if: matrix.node == 14
run: npm install -g npm@8
# Install latest npm for older Node.js versions
- run: npm install -g npm
# Install node_modules
- uses: actions/cache@v3
id: cache-node_modules
Expand Down

0 comments on commit 0c635c7

Please sign in to comment.