Skip to content

Commit 95ba44c

Browse files
authored
Simplify dependency caching on CI and upgrade actions (#1617)
1 parent 2854419 commit 95ba44c

File tree

2 files changed

+7
-22
lines changed

2 files changed

+7
-22
lines changed

.github/workflows/size.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
env:
77
CI_JOB_NUMBER: 1
88
steps:
9-
- uses: actions/checkout@v1
9+
- uses: actions/checkout@v2
1010
- uses: andresz1/size-limit-action@v1
1111
with:
1212
directory: packages/toolkit

.github/workflows/tests.yml

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,10 @@ jobs:
1818
uses: actions/checkout@v2
1919

2020
- name: Use node ${{ matrix.node }}
21-
uses: actions/setup-node@v1
21+
uses: actions/setup-node@v2
2222
with:
2323
node-version: ${{ matrix.node }}
24-
25-
- uses: actions/cache@v2
26-
with:
27-
path: .yarn/cache
28-
key: yarn-${{ hashFiles('yarn.lock') }}
29-
restore-keys: yarn-
24+
cache: 'yarn'
3025

3126
- name: Install deps
3227
run: yarn install
@@ -52,15 +47,10 @@ jobs:
5247
uses: actions/checkout@v2
5348

5449
- name: Use node ${{ matrix.node }}
55-
uses: actions/setup-node@v1
50+
uses: actions/setup-node@v2
5651
with:
5752
node-version: ${{ matrix.node }}
58-
59-
- uses: actions/cache@v2
60-
with:
61-
path: .yarn/cache
62-
key: yarn-${{ hashFiles('yarn.lock') }}
63-
restore-keys: yarn-
53+
cache: 'yarn'
6454

6555
- name: Install deps
6656
run: yarn install
@@ -95,15 +85,10 @@ jobs:
9585
uses: actions/checkout@v2
9686

9787
- name: Use node ${{ matrix.node }}
98-
uses: actions/setup-node@v1
88+
uses: actions/setup-node@v2
9989
with:
10090
node-version: ${{ matrix.node }}
101-
102-
- uses: actions/cache@v2
103-
with:
104-
path: .yarn/cache
105-
key: yarn-${{ hashFiles('yarn.lock') }}
106-
restore-keys: yarn-
91+
cache: 'yarn'
10792

10893
- name: Install deps
10994
run: yarn install

0 commit comments

Comments
 (0)