From 9357c183cb59ac1c0fab540882cdbda83836f0d5 Mon Sep 17 00:00:00 2001 From: Jack Bates Date: Tue, 7 Jun 2022 14:20:05 -0700 Subject: [PATCH] Fix up "Use symbolic GitHub Actions Node.js versions (#49403)" (#49420) * Fix up "Use symbolic GitHub Actions Node.js versions (#49403)" * Use npm v6 to update package-lock.json --- .github/workflows/nightly.yaml | 5 ++++- .github/workflows/update-package-lock.yaml | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml index 6333c75b4b052..351ea3ac8cd36 100644 --- a/.github/workflows/nightly.yaml +++ b/.github/workflows/nightly.yaml @@ -16,6 +16,9 @@ jobs: steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v3 + with: + # Use NODE_AUTH_TOKEN environment variable to authenticate to this registry. + registry-url: https://registry.npmjs.org/ - name: Setup and publish nightly run: | npm whoami @@ -26,4 +29,4 @@ jobs: gulp clean npm publish --tag next env: - NPM_TOKEN: ${{secrets.npm_token}} + NODE_AUTH_TOKEN: ${{secrets.npm_token}} diff --git a/.github/workflows/update-package-lock.yaml b/.github/workflows/update-package-lock.yaml index da64c80daccc8..c5ee25eddf70b 100644 --- a/.github/workflows/update-package-lock.yaml +++ b/.github/workflows/update-package-lock.yaml @@ -15,12 +15,14 @@ jobs: steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v3 + with: + node-version: 14 - 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 + npm install --package-lock-only --ignore-scripts git add -f package-lock.json if git commit -m "Update package-lock.json"; then git push