mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 21:53:42 -06:00
* Fix up "Use symbolic GitHub Actions Node.js versions (#49403)" * Use npm v6 to update package-lock.json
This commit is contained in:
parent
4c5060181f
commit
9357c183cb
5
.github/workflows/nightly.yaml
vendored
5
.github/workflows/nightly.yaml
vendored
@ -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}}
|
||||
|
||||
4
.github/workflows/update-package-lock.yaml
vendored
4
.github/workflows/update-package-lock.yaml
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user