Skip to content

Commit

Permalink
Fix up "Use symbolic GitHub Actions Node.js versions (#49403)" (#49420)
Browse files Browse the repository at this point in the history
* Fix up "Use symbolic GitHub Actions Node.js versions (#49403)"

* Use npm v6 to update package-lock.json
  • Loading branch information
jablko committed Jun 7, 2022
1 parent 4c50601 commit 9357c18
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/nightly.yaml
Expand Up @@ -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
Expand All @@ -26,4 +29,4 @@ jobs:
gulp clean
npm publish --tag next
env:
NPM_TOKEN: ${{secrets.npm_token}}
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
4 changes: 3 additions & 1 deletion .github/workflows/update-package-lock.yaml
Expand Up @@ -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
Expand Down

0 comments on commit 9357c18

Please sign in to comment.