Skip to content

Commit 2ff8458

Browse files
authored
Update CI workflows to use latest version of actions (#3445)
GitHub began the Node16 deprecation process a year ago [1][2]. This commit updates CI workflows to use the latest Node20 actions. [1]: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/ [2]: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/ Signed-off-by: Eng Zer Jun <[email protected]>
1 parent 49c081d commit 2ff8458

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ jobs:
1818

1919
steps:
2020
- name: Begin CI...
21-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
2222
- name: Use Node ${{ env.NODE_VERSION }}
23-
uses: actions/setup-node@v3
23+
uses: actions/setup-node@v4
2424
with:
2525
node-version: ${{ env.NODE_VERSION }}
26-
- uses: actions/cache@v3
26+
- uses: actions/cache@v4
2727
with:
2828
path: '**/node_modules'
2929
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-modules-${{ hashFiles('**/package-lock.json') }}
@@ -38,8 +38,8 @@ jobs:
3838

3939
steps:
4040
- name: Begin CI...
41-
uses: actions/checkout@v3
42-
- uses: actions/cache@v3
41+
uses: actions/checkout@v4
42+
- uses: actions/cache@v4
4343
with:
4444
path: '**/node_modules'
4545
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-modules-${{ hashFiles('**/package-lock.json') }}
@@ -54,8 +54,8 @@ jobs:
5454

5555
steps:
5656
- name: Begin CI...
57-
uses: actions/checkout@v3
58-
- uses: actions/cache@v3
57+
uses: actions/checkout@v4
58+
- uses: actions/cache@v4
5959
with:
6060
path: '**/node_modules'
6161
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-modules-${{ hashFiles('**/package-lock.json') }}
@@ -71,8 +71,8 @@ jobs:
7171

7272
steps:
7373
- name: Begin CI...
74-
uses: actions/checkout@v3
75-
- uses: actions/cache@v3
74+
uses: actions/checkout@v4
75+
- uses: actions/cache@v4
7676
with:
7777
path: '**/node_modules'
7878
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-modules-${{ hashFiles('**/package-lock.json') }}
@@ -87,8 +87,8 @@ jobs:
8787

8888
steps:
8989
- name: Begin CI...
90-
uses: actions/checkout@v3
91-
- uses: actions/cache@v3
90+
uses: actions/checkout@v4
91+
- uses: actions/cache@v4
9292
with:
9393
path: '**/node_modules'
9494
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-modules-${{ hashFiles('**/package-lock.json') }}

.github/workflows/prepare-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
node-version: [18]
2525

2626
steps:
27-
- uses: actions/checkout@v3
27+
- uses: actions/checkout@v4
2828

2929
- run: git fetch --tags -f
3030

@@ -41,13 +41,13 @@ jobs:
4141
echo "EOF" >> $GITHUB_ENV
4242
4343
- name: Use Node.js ${{ matrix.node-version }}
44-
uses: actions/setup-node@v3
44+
uses: actions/setup-node@v4
4545
with:
4646
node-version: ${{ matrix.node-version }}
4747
registry-url: 'https://registry.npmjs.org'
4848

4949
- name: Release
50-
uses: softprops/action-gh-release@v1
50+
uses: softprops/action-gh-release@v2
5151
with:
5252
draft: true
5353
tag_name: ${{ env.TAG_NAME }}

.github/workflows/release-insiders.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ jobs:
2222
node-version: [20]
2323

2424
steps:
25-
- uses: actions/checkout@v3
25+
- uses: actions/checkout@v4
2626

2727
- name: Use Node.js ${{ matrix.node-version }}
28-
uses: actions/setup-node@v3
28+
uses: actions/setup-node@v4
2929
with:
3030
node-version: ${{ matrix.node-version }}
3131
registry-url: 'https://registry.npmjs.org'
3232

3333
- name: Use cached node_modules
3434
id: cache
35-
uses: actions/cache@v3
35+
uses: actions/cache@v4
3636
with:
3737
path: '**/node_modules'
3838
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-modules-${{ hashFiles('**/package-lock.json') }}

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@ jobs:
2525
node-version: [18]
2626

2727
steps:
28-
- uses: actions/checkout@v3
28+
- uses: actions/checkout@v4
2929

3030
- name: Use Node.js ${{ matrix.node-version }}
31-
uses: actions/setup-node@v3
31+
uses: actions/setup-node@v4
3232
with:
3333
node-version: ${{ matrix.node-version }}
3434
registry-url: 'https://registry.npmjs.org'
3535

3636
- name: Use cached node_modules
3737
id: cache
38-
uses: actions/cache@v3
38+
uses: actions/cache@v4
3939
with:
4040
path: '**/node_modules'
4141
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-modules-${{ hashFiles('**/package-lock.json') }}

0 commit comments

Comments
 (0)