Skip to content

Commit c3e2c3d

Browse files
authored
Update ci.yml
1 parent a25d5db commit c3e2c3d

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- master
77
tags-ignore:
8-
- "*.*"
8+
- "**"
99
pull_request:
1010
branches:
1111
- master
@@ -16,26 +16,25 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
node-version: [14.x, 16.x]
19+
node: [16]
2020

2121
steps:
22-
- uses: actions/checkout@v2
22+
- uses: actions/checkout@v3
2323
- name: Use Node.js ${{ matrix.node-version }}
24-
uses: actions/setup-node@v2
24+
uses: actions/setup-node@v3
2525
with:
2626
node-version: ${{ matrix.node-version }}
2727

28-
- name: Get cached node modules
28+
- name: Get yarn cache directory path
2929
id: yarn-cache-dir-path
3030
run: echo "::set-output name=dir::$(yarn cache dir)"
31-
- uses: actions/cache@v2
31+
- uses: actions/cache@v3
3232
id: yarn-cache
3333
with:
3434
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
3535
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
3636
restore-keys: |
3737
${{ runner.os }}-yarn-
38-
3938
- name: Install dependencies
4039
run: yarn install --frozen-lockfile
4140
- name: Run lint
@@ -56,19 +55,18 @@ jobs:
5655
if: github.ref == 'refs/heads/master'
5756

5857
steps:
59-
- uses: actions/checkout@v2
58+
- uses: actions/checkout@v3
6059

61-
- name: Get cached node modules
60+
- name: Get yarn cache directory path
6261
id: yarn-cache-dir-path
6362
run: echo "::set-output name=dir::$(yarn cache dir)"
64-
- uses: actions/cache@v2.1.6
63+
- uses: actions/cache@v3
6564
id: yarn-cache
6665
with:
6766
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
6867
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
6968
restore-keys: |
7069
${{ runner.os }}-yarn-
71-
7270
- name: Install dependencies
7371
run: yarn install --frozen-lockfile
7472
- name: Run build

0 commit comments

Comments
 (0)