Skip to content

Commit

Permalink
Switch to npm 7 (take 2) (video-dev#3675)
Browse files Browse the repository at this point in the history
* switch to npm 7 (take 2)

* specify encoding
  • Loading branch information
tjenkinson authored Apr 3, 2021
1 parent 04cc5f1 commit c029aa8
Show file tree
Hide file tree
Showing 4 changed files with 27,656 additions and 4,356 deletions.
29 changes: 22 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
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
Loading

0 comments on commit c029aa8

Please sign in to comment.