Update to npm 8, pin in package.json via volta and corepack (#49941)

This commit is contained in:
Jake Bailey
2022-07-27 14:02:24 -07:00
committed by GitHub
parent 8d0c72d5e0
commit 1361567ea4
3 changed files with 9376 additions and 430 deletions

View File

@@ -16,13 +16,14 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 14
node-version: 16
- name: Configure git and update package-lock.json
run: |
git config user.email "typescriptbot@microsoft.com"
git config user.name "TypeScript Bot"
npm install --package-lock-only --ignore-scripts
rm package-lock.json
npm install --package-lock-only --ignore-scripts # This is a no-op if package-lock.json is present.
git add -f package-lock.json
if git commit -m "Update package-lock.json"; then
git push