Skip to content

Commit

Permalink
switch to npm 7 (#3666)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjenkinson committed Mar 22, 2021
1 parent 83dd478 commit a49cfca
Show file tree
Hide file tree
Showing 3 changed files with 30,410 additions and 26 deletions.
29 changes: 22 additions & 7 deletions .github/workflows/build.yml
Expand Up @@ -43,6 +43,21 @@ jobs:
with:
fetch-depth: 0

- name: check package-lock.json version
id: extract_tag
uses: actions/github-script@v3
with:
script: |
const fs = require('fs');
if (
JSON.parse(fs.readFileSync('./package-lock.json', { encoding: 'utf8' }))
.lockfileVersion !== 2
) {
throw new Error(
'Expecting package-lock.json version to be 2. Please make sure you are using npm 7.'
);
}
- name: cache node_modules
uses: actions/cache@v2
env:
Expand All @@ -58,7 +73,7 @@ jobs:
- name: use Node.js
uses: actions/setup-node@v2
with:
node-version: '12'
node-version: '15'

- name: install
run: |
Expand Down Expand Up @@ -118,7 +133,7 @@ jobs:
- name: use Node.js
uses: actions/setup-node@v2
with:
node-version: '12'
node-version: '15'

- name: download build
uses: actions/download-artifact@v2
Expand Down Expand Up @@ -159,7 +174,7 @@ jobs:
- name: use Node.js
uses: actions/setup-node@v2
with:
node-version: '12'
node-version: '15'

- name: download build
uses: actions/download-artifact@v2
Expand Down Expand Up @@ -196,7 +211,7 @@ jobs:
- name: use Node.js
uses: actions/setup-node@v2
with:
node-version: '12'
node-version: '15'

- name: download build
uses: actions/download-artifact@v2
Expand Down Expand Up @@ -249,7 +264,7 @@ jobs:
- name: use Node.js
uses: actions/setup-node@v2
with:
node-version: '12'
node-version: '15'

- name: download build
uses: actions/download-artifact@v2
Expand Down Expand Up @@ -303,7 +318,7 @@ jobs:
- name: use Node.js
uses: actions/setup-node@v2
with:
node-version: '12'
node-version: '15'

- name: download build
uses: actions/download-artifact@v2
Expand Down Expand Up @@ -394,7 +409,7 @@ jobs:
- name: use Node.js
uses: actions/setup-node@v2
with:
node-version: '12'
node-version: '15'

- name: download build
uses: actions/download-artifact@v2
Expand Down

0 comments on commit a49cfca

Please sign in to comment.