Skip to content

Commit 0e88a42

Browse files
committed
Update GitHub Actions to use latest versions of checkout, setup-node, and cache actions
1 parent 2e9c93a commit 0e88a42

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515

1616
- name: Setup Node.js environment
17-
uses: actions/setup-node@v3
17+
uses: actions/setup-node@v4
1818
with:
19-
node-version: "16.x"
19+
node-version: "22.x"
2020

2121
- name: Get yarn cache directory path
2222
id: yarn-cache-dir-path
2323
run: echo "::set-output name=dir::$(yarn cache dir)"
2424

2525
- name: Cache yarn cache
26-
uses: actions/cache@v2
26+
uses: actions/cache@v4
2727
id: cache-yarn-cache
2828
with:
2929
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
@@ -33,7 +33,7 @@ jobs:
3333
3434
- name: Cache node_modules
3535
id: cache-node-modules
36-
uses: actions/cache@v2
36+
uses: actions/cache@v4
3737
with:
3838
path: node_modules
3939
key: ${{ runner.os }}-${{ matrix.node-version }}-nodemodules-${{ hashFiles('**/yarn.lock') }}

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414

1515
- name: Setup Node.js environment
16-
uses: actions/setup-node@v3
16+
uses: actions/setup-node@v4
1717
with:
18-
node-version: "16.x"
18+
node-version: "22.x"
1919

2020
- name: Get yarn cache directory path
2121
id: yarn-cache-dir-path
2222
run: echo "::set-output name=dir::$(yarn cache dir)"
2323

2424
- name: Cache yarn cache
25-
uses: actions/cache@v3
25+
uses: actions/cache@v4
2626
id: cache-yarn-cache
2727
with:
2828
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
@@ -32,7 +32,7 @@ jobs:
3232
3333
- name: Cache node_modules
3434
id: cache-node-modules
35-
uses: actions/cache@v3
35+
uses: actions/cache@v4
3636
with:
3737
path: node_modules
3838
key: ${{ runner.os }}-${{ matrix.node-version }}-nodemodules-${{ hashFiles('**/yarn.lock') }}

0 commit comments

Comments
 (0)