Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(workflows): bump 'setup-node' to v2 and use 'cache' option #44924

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/accept-baselines-fix-lints.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Use node version 12
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: 12
registry-url: https://registry.npmjs.org/
cache: npm

- name: Configure Git, Run Tests, Update Baselines, Apply Fixes
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ jobs:
with:
fetch-depth: 5
- name: Use node version ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Remove existing TypeScript
run: |
npm uninstall typescript --no-save
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/new-release-branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ jobs:

steps:
- name: Use node version 12.x
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: 12.x
cache: npm
- uses: actions/checkout@v2
with:
fetch-depth: 5
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Use node version 12
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: 12
registry-url: https://registry.npmjs.org/
cache: npm
- name: Setup and publish nightly
run: |
npm whoami
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release-branch-artifact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Use node version 12
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: 12
cache: npm
- name: Remove existing TypeScript
run: |
npm uninstall typescript --no-save
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/set-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ jobs:

steps:
- name: Use node version 12.x
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: 12.x
cache: npm
- uses: actions/checkout@v2
with:
ref: ${{ github.event.client_payload.branch_name }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/sync-branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ jobs:

steps:
- name: Use node version 12.x
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: 12.x
cache: npm
- uses: actions/checkout@v2
with:
ref: ${{ github.event.inputs.branch_name || github.event.client_payload.branch_name }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/twoslash-repros.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Use node
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
cache: npm
- run: |
npm init -y
npm install --save typescript@next
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/update-lkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Use node version 12
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: 12
registry-url: https://registry.npmjs.org/
cache: npm

- name: Configure Git and Update LKG
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/update-package-lock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 12
registry-url: https://registry.npmjs.org/
cache: npm

- name: Configure git and update package-lock.json
run: |
Expand Down