Skip to content

Commit 6cef33b

Browse files
committed
ci: update workflow
1 parent 9f6d6c6 commit 6cef33b

File tree

1 file changed

+4
-24
lines changed

1 file changed

+4
-24
lines changed

.github/workflows/ci-cd.yml

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,13 @@ jobs:
1717
runs-on: ubuntu-latest
1818
strategy:
1919
matrix:
20-
node: [16, 18]
20+
node: [18, 20]
2121
steps:
2222
- uses: actions/checkout@v3
2323
- uses: actions/setup-node@v3
2424
with:
2525
node-version: ${{ matrix.node }}
26-
- id: find-yarn-cache-folder
27-
name: Find Yarn's cache folder
28-
run: echo "::set-output name=path::$(yarn config get cacheFolder)"
29-
- name: Cache Yarn's cache folder
30-
uses: actions/[email protected]
31-
with:
32-
path: ${{ steps.find-yarn-cache-folder.outputs.path }}
33-
key: yarn-cache-folder-os-${{ runner.os }}-node-${{ env.node-version }}-${{ hashFiles('yarn.lock') }}
34-
restore-keys: |
35-
yarn-cache-folder-os-${{ runner.os }}-node-${{ env.node-version }}-
36-
yarn-cache-folder-os-${{ runner.os }}-
26+
cache: yarn
3727
- name: Install dependencies and test
3828
run: |
3929
yarn install --immutable
@@ -49,18 +39,8 @@ jobs:
4939
- uses: actions/checkout@v3
5040
- uses: actions/setup-node@v3
5141
with:
52-
node-version: 16
53-
- id: find-yarn-cache-folder
54-
name: Find Yarn's cache folder
55-
run: echo "::set-output name=path::$(yarn config get cacheFolder)"
56-
- name: Cache Yarn's cache folder
57-
uses: actions/[email protected]
58-
with:
59-
path: ${{ steps.find-yarn-cache-folder.outputs.path }}
60-
key: yarn-cache-folder-os-${{ runner.os }}-node-${{ env.node-version }}-${{ hashFiles('yarn.lock') }}
61-
restore-keys: |
62-
yarn-cache-folder-os-${{ runner.os }}-node-${{ env.node-version }}-
63-
yarn-cache-folder-os-${{ runner.os }}-
42+
node-version: 20
43+
cache: yarn
6444
- name: Build and release
6545
run: |
6646
yarn install --immutable

0 commit comments

Comments
 (0)