Skip to content

Commit 99a6424

Browse files
authored
chore(ci): upgrade node actions to node v20 (#8857)
Fixes Github Actions warning: > Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
1 parent 1a064d8 commit 99a6424

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

.github/actions/install-deps/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ runs:
88
using: composite
99

1010
steps:
11-
- uses: actions/setup-node@v3
11+
- uses: actions/setup-node@v4
1212
with:
1313
node-version: ${{ inputs.node-version }}
1414

15-
- uses: actions/cache@v3
15+
- uses: actions/cache@v4
1616
with:
1717
path: ~/.npm
1818
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
lint:
2323
runs-on: ubuntu-latest
2424
steps:
25-
- uses: actions/checkout@v3
25+
- uses: actions/checkout@v4
2626
- uses: ./.github/actions/install-deps
2727
with:
2828
node-version: ${{ env.NODE_VERSION }}
@@ -31,7 +31,7 @@ jobs:
3131
shellcheck:
3232
runs-on: ubuntu-latest
3333
steps:
34-
- uses: actions/checkout@v3
34+
- uses: actions/checkout@v4
3535
- run: sudo apt-get install shellcheck
3636
- run: git ls-files '*.sh' | xargs shellcheck
3737

@@ -57,7 +57,7 @@ jobs:
5757
COUCH_HOST: http://admin:password@127.0.0.1:5984
5858
SKIP_MIGRATION: 1
5959
steps:
60-
- uses: actions/checkout@v3
60+
- uses: actions/checkout@v4
6161
- uses: ./.github/actions/install-deps
6262
with:
6363
node-version: ${{ matrix.node }}
@@ -97,7 +97,7 @@ jobs:
9797
COUCH_HOST: http://admin:password@127.0.0.1:5984
9898
SKIP_MIGRATION: 1
9999
steps:
100-
- uses: actions/checkout@v3
100+
- uses: actions/checkout@v4
101101
- uses: ./.github/actions/install-deps
102102
with:
103103
node-version: ${{ env.NODE_VERSION }}
@@ -134,7 +134,7 @@ jobs:
134134
CLIENT: node
135135
ADAPTERS: ${{ matrix.adapter }}
136136
steps:
137-
- uses: actions/checkout@v3
137+
- uses: actions/checkout@v4
138138
- uses: ./.github/actions/install-deps
139139
with:
140140
node-version: ${{ matrix.node }}
@@ -171,7 +171,7 @@ jobs:
171171
CLIENT: ${{ matrix.client }}
172172
ADAPTERS: ${{ matrix.adapter }}
173173
steps:
174-
- uses: actions/checkout@v3
174+
- uses: actions/checkout@v4
175175
- uses: ./.github/actions/install-deps
176176
with:
177177
node-version: ${{ env.NODE_VERSION }}
@@ -208,7 +208,7 @@ jobs:
208208
CLIENT: ${{ matrix.client }}
209209
SERVER: pouchdb-server
210210
steps:
211-
- uses: actions/checkout@v3
211+
- uses: actions/checkout@v4
212212
- uses: ./.github/actions/install-deps
213213
with:
214214
node-version: ${{ env.NODE_VERSION }}
@@ -244,7 +244,7 @@ jobs:
244244
- npm run verify-build
245245
runs-on: ubuntu-latest
246246
steps:
247-
- uses: actions/checkout@v3
247+
- uses: actions/checkout@v4
248248
- uses: ./.github/actions/install-deps
249249
with:
250250
node-version: ${{ matrix.node }}

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-20.04
2020
steps:
2121
- name: Checkout
22-
uses: actions/checkout@v3
22+
uses: actions/checkout@v4
2323
- uses: ./.github/actions/install-deps
2424
- uses: ruby/setup-ruby@v1
2525
with:

0 commit comments

Comments
 (0)