Skip to content

Commit b1b0d24

Browse files
authored
Update GH actions (#123)
1 parent b3dcc87 commit b1b0d24

File tree

5 files changed

+44
-44
lines changed

5 files changed

+44
-44
lines changed

.github/workflows/build-lint-test.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ jobs:
77
env:
88
GH_PR_NUM: ${{ github.event.number }}
99
steps:
10-
- uses: actions/checkout@v2
10+
- uses: actions/checkout@v4
1111
- run: |
1212
if [[ ! -z "${GH_PR_NUM}" ]]; then
1313
echo "Checking out PR"
1414
git fetch origin pull/$GH_PR_NUM/head:tmp
1515
git checkout tmp
1616
fi
17-
- uses: actions/setup-node@v3
17+
- uses: actions/setup-node@v4
1818
with:
19-
node-version: '16'
20-
- uses: actions/cache@v2
19+
node-version: '20'
20+
- uses: actions/cache@v4
2121
id: npm-cache
2222
name: Cache npm deps
2323
with:
@@ -27,7 +27,7 @@ jobs:
2727
key: ${{ runner.os }}-npm-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('package-lock.json') }}
2828
- run: npm install --frozen-lockfile
2929
if: steps.npm-cache.outputs.cache-hit != 'true'
30-
- uses: actions/cache@v2
30+
- uses: actions/cache@v4
3131
id: dist
3232
name: Cache dist
3333
with:
@@ -43,17 +43,17 @@ jobs:
4343
GH_PR_NUM: ${{ github.event.number }}
4444
needs: build
4545
steps:
46-
- uses: actions/checkout@v2
46+
- uses: actions/checkout@v4
4747
- run: |
4848
if [[ ! -z "${GH_PR_NUM}" ]]; then
4949
echo "Checking out PR"
5050
git fetch origin pull/$GH_PR_NUM/head:tmp
5151
git checkout tmp
5252
fi
53-
- uses: actions/setup-node@v3
53+
- uses: actions/setup-node@v4
5454
with:
55-
node-version: '16'
56-
- uses: actions/cache@v2
55+
node-version: '20'
56+
- uses: actions/cache@v4
5757
id: npm-cache
5858
name: Cache npm deps
5959
with:
@@ -63,7 +63,7 @@ jobs:
6363
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('package-lock.json') }}
6464
- run: npm install --frozen-lockfile
6565
if: steps.npm-cache.outputs.cache-hit != 'true'
66-
- uses: actions/cache@v2
66+
- uses: actions/cache@v4
6767
id: lint-cache
6868
name: Load lint cache
6969
with:
@@ -79,18 +79,18 @@ jobs:
7979
GH_PR_NUM: ${{ github.event.number }}
8080
needs: build
8181
steps:
82-
- uses: actions/checkout@v2
82+
- uses: actions/checkout@v4
8383
# Yes, we really want to checkout the PR
8484
- run: |
8585
if [[ ! -z "${GH_PR_NUM}" ]]; then
8686
echo "Checking out PR"
8787
git fetch origin pull/$GH_PR_NUM/head:tmp
8888
git checkout tmp
8989
fi
90-
- uses: actions/setup-node@v3
90+
- uses: actions/setup-node@v4
9191
with:
92-
node-version: '16'
93-
- uses: actions/cache@v2
92+
node-version: '20'
93+
- uses: actions/cache@v4
9494
id: npm-cache
9595
name: Cache npm deps
9696
with:
@@ -101,7 +101,7 @@ jobs:
101101
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('package-lock.json') }}
102102
- run: npm install --frozen-lockfile
103103
if: steps.npm-cache.outputs.cache-hit != 'true'
104-
- uses: actions/cache@v2
104+
- uses: actions/cache@v4
105105
id: dist
106106
name: Cache dist
107107
with:
@@ -120,18 +120,18 @@ jobs:
120120
GH_PR_NUM: ${{ github.event.number }}
121121
needs: build
122122
steps:
123-
- uses: actions/checkout@v2
123+
- uses: actions/checkout@v4
124124
# Yes, we really want to checkout the PR
125125
- run: |
126126
if [[ ! -z "${GH_PR_NUM}" ]]; then
127127
echo "Checking out PR"
128128
git fetch origin pull/$GH_PR_NUM/head:tmp
129129
git checkout tmp
130130
fi
131-
- uses: actions/setup-node@v3
131+
- uses: actions/setup-node@v4
132132
with:
133-
node-version: '16'
134-
- uses: actions/cache@v2
133+
node-version: '20'
134+
- uses: actions/cache@v4
135135
id: npm-cache
136136
name: Cache npm deps
137137
with:
@@ -142,7 +142,7 @@ jobs:
142142
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('package-lock.json') }}
143143
- run: npm install --frozen-lockfile
144144
if: steps.npm-cache.outputs.cache-hit != 'true'
145-
- uses: actions/cache@v2
145+
- uses: actions/cache@v4
146146
id: dist
147147
name: Cache dist
148148
with:
@@ -163,18 +163,18 @@ jobs:
163163
GH_PR_NUM: ${{ github.event.number }}
164164
needs: build
165165
steps:
166-
- uses: actions/checkout@v2
166+
- uses: actions/checkout@v4
167167
# Yes, we really want to checkout the PR
168168
- run: |
169169
if [[ ! -z "${GH_PR_NUM}" ]]; then
170170
echo "Checking out PR"
171171
git fetch origin pull/$GH_PR_NUM/head:tmp
172172
git checkout tmp
173173
fi
174-
- uses: actions/setup-node@v3
174+
- uses: actions/setup-node@v4
175175
with:
176-
node-version: '16'
177-
- uses: actions/cache@v2
176+
node-version: '20'
177+
- uses: actions/cache@v4
178178
id: npm-cache
179179
name: Cache npm deps
180180
with:
@@ -185,7 +185,7 @@ jobs:
185185
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('package-lock.json') }}
186186
- run: npm install --frozen-lockfile
187187
if: steps.npm-cache.outputs.cache-hit != 'true'
188-
- uses: actions/cache@v2
188+
- uses: actions/cache@v4
189189
id: dist
190190
name: Cache dist
191191
with:

.github/workflows/build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ jobs:
77
env:
88
GH_PR_NUM: ${{ github.event.number }}
99
steps:
10-
- uses: actions/checkout@v2
10+
- uses: actions/checkout@v4
1111
- run: |
1212
if [[ ! -z "${GH_PR_NUM}" ]]; then
1313
echo "Checking out PR"
1414
git fetch origin pull/$GH_PR_NUM/head:tmp
1515
git checkout tmp
1616
fi
17-
- uses: actions/cache@v2
17+
- uses: actions/cache@v4
1818
id: setup-cache
1919
name: Cache setup
2020
with:
@@ -30,10 +30,10 @@ jobs:
3030
run: ./devSetup.sh
3131
shell: bash
3232
if: steps.setup-cache.outputs.cache-hit != 'true'
33-
- uses: actions/setup-node@v3
33+
- uses: actions/setup-node@v4
3434
with:
35-
node-version: '16'
36-
- uses: actions/cache@v2
35+
node-version: '20'
36+
- uses: actions/cache@v4
3737
id: npm-cache
3838
name: Cache npm deps
3939
with:
@@ -43,7 +43,7 @@ jobs:
4343
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('package-lock.json') }}
4444
- run: npm install --frozen-lockfile
4545
if: steps.npm-cache.outputs.cache-hit != 'true'
46-
- uses: actions/cache@v2
46+
- uses: actions/cache@v4
4747
id: dist
4848
name: Cache dist
4949
with:

.github/workflows/pr-preview.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
GH_PR_TOKEN: ${{ secrets.GH_PR_TOKEN }}
1111
GH_PR_NUM: ${{ github.event.number }}
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
1414
# Yes, we really want to checkout the PR
1515
- run: |
1616
git fetch origin pull/$GH_PR_NUM/head:tmp
@@ -24,10 +24,10 @@ jobs:
2424
2525
# Yes, we really want to checkout the PR
2626
# Injected by generate-workflows.js
27-
- uses: actions/setup-node@v3
27+
- uses: actions/setup-node@v4
2828
with:
29-
node-version: '16'
30-
- uses: actions/cache@v2
29+
node-version: '20'
30+
- uses: actions/cache@v4
3131
id: npm-cache
3232
name: Load npm deps from cache
3333
with:
@@ -37,7 +37,7 @@ jobs:
3737
if: steps.yarn-cache.outputs.cache-hit != 'true'
3838
- run: npm run build
3939
name: Build component groups
40-
- uses: actions/cache@v2
40+
- uses: actions/cache@v4
4141
id: docs-cache
4242
name: Load webpack cache
4343
with:

.github/workflows/promote.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1313
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v4
1616
- name: Build for promotion
1717
run: yarn install --frozen-lockfile && yarn build
18-
- uses: actions/setup-node@v3
18+
- uses: actions/setup-node@v4
1919
with:
20-
node-version: '16.x'
20+
node-version: '20.x'
2121
registry-url: 'https://registry.npmjs.org'
2222
- name: GitHub Tag Name example
2323
run: |

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1515
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1616
steps:
17-
- uses: actions/checkout@v2
18-
- uses: actions/setup-node@v3
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-node@v4
1919
with:
20-
node-version: '16'
21-
- uses: actions/cache@v2
20+
node-version: '20'
21+
- uses: actions/cache@v4
2222
id: npm-cache
2323
name: Cache npm deps
2424
with:
@@ -29,7 +29,7 @@ jobs:
2929
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('package-lock.json') }}
3030
- run: npm install --frozen-lockfile
3131
if: steps.npm-cache.outputs.cache-hit != 'true'
32-
- uses: actions/cache@v2
32+
- uses: actions/cache@v4
3333
id: dist
3434
name: Cache dist
3535
with:

0 commit comments

Comments
 (0)