Skip to content

Commit 1361567

Browse files
authored
Update to npm 8, pin in package.json via volta and corepack (#49941)
1 parent 8d0c72d commit 1361567

File tree

3 files changed

+9378
-432
lines changed

3 files changed

+9378
-432
lines changed

.github/workflows/update-package-lock.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@ jobs:
1616
- uses: actions/checkout@v2
1717
- uses: actions/setup-node@v3
1818
with:
19-
node-version: 14
19+
node-version: 16
2020

2121
- name: Configure git and update package-lock.json
2222
run: |
2323
git config user.email "[email protected]"
2424
git config user.name "TypeScript Bot"
25-
npm install --package-lock-only --ignore-scripts
25+
rm package-lock.json
26+
npm install --package-lock-only --ignore-scripts # This is a no-op if package-lock.json is present.
2627
git add -f package-lock.json
2728
if git commit -m "Update package-lock.json"; then
2829
git push

0 commit comments

Comments
 (0)