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
This commit is contained in:
Jack Bates 2022-06-07 14:20:05 -07:00 committed by GitHub
parent 4c5060181f
commit 9357c183cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -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}}

View File

@ -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