Skip to content

Commit 9357c18

Browse files
authored
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
1 parent 4c50601 commit 9357c18

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/nightly.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v2
1818
- uses: actions/setup-node@v3
19+
with:
20+
# Use NODE_AUTH_TOKEN environment variable to authenticate to this registry.
21+
registry-url: https://registry.npmjs.org/
1922
- name: Setup and publish nightly
2023
run: |
2124
npm whoami
@@ -26,4 +29,4 @@ jobs:
2629
gulp clean
2730
npm publish --tag next
2831
env:
29-
NPM_TOKEN: ${{secrets.npm_token}}
32+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v2
1717
- uses: actions/setup-node@v3
18+
with:
19+
node-version: 14
1820

1921
- name: Configure git and update package-lock.json
2022
run: |
2123
git config user.email "[email protected]"
2224
git config user.name "TypeScript Bot"
23-
npm install --package-lock-only
25+
npm install --package-lock-only --ignore-scripts
2426
git add -f package-lock.json
2527
if git commit -m "Update package-lock.json"; then
2628
git push

0 commit comments

Comments
 (0)