Skip to content

Commit 1a155df

Browse files
authored
update github actions to latest versions (#2502)
1 parent b0fc70c commit 1a155df

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

.github/workflows/turf.yml

+3-16
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,12 @@ jobs:
1818
node-version: [16.x, 18.x, 20.x]
1919

2020
steps:
21-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v3
2222
- name: Use Node.js ${{ matrix.node-version }}
23-
uses: actions/setup-node@v1
23+
uses: actions/setup-node@v3
2424
with:
2525
node-version: ${{ matrix.node-version }}
26-
27-
# figure out the yarn cache directory
28-
- name: Get yarn cache directory path
29-
id: yarn-cache-dir-path
30-
run: echo "::set-output name=dir::$(yarn cache dir)"
31-
32-
# cache the yarn data to speed up builds
33-
- uses: actions/cache@v2
34-
id: yarn-cache
35-
with:
36-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
37-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
38-
restore-keys: |
39-
${{ runner.os }}-yarn-
26+
cache: "yarn"
4027

4128
- run: yarn --frozen-lockfile
4229
- run: git diff --exit-code

0 commit comments

Comments
 (0)