Skip to content

Commit 1525f60

Browse files
authored
Update deps to Node 20 (#472)
1 parent 638bac3 commit 1525f60

File tree

10 files changed

+495
-457
lines changed

10 files changed

+495
-457
lines changed

.github/workflows/cleanup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: 'ubuntu-latest'
1515

1616
steps:
17-
- uses: 'actions/checkout@v3'
17+
- uses: 'actions/checkout@v4'
1818

1919
- uses: 'google-github-actions/auth@main'
2020
with:

.github/workflows/integration.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ jobs:
3434
name: 'from_${{ matrix.name }}'
3535

3636
steps:
37-
- uses: 'actions/checkout@v3'
37+
- uses: 'actions/checkout@v4'
3838

3939
- name: 'Compute service name'
4040
run: |-
4141
echo "SERVICE_NAME=${GITHUB_JOB}-${{ matrix.name }}-${GITHUB_SHA::7}-${GITHUB_RUN_NUMBER}" >> ${GITHUB_ENV}
4242
43-
- uses: 'actions/setup-node@v3'
43+
- uses: 'actions/setup-node@v4'
4444
with:
45-
node-version: '16.x'
45+
node-version: '20.x'
4646

4747
- run: 'npm ci && npm run build'
4848

@@ -108,7 +108,7 @@ jobs:
108108
runs-on: 'ubuntu-latest'
109109

110110
steps:
111-
- uses: 'actions/checkout@v3'
111+
- uses: 'actions/checkout@v4'
112112

113113
- name: 'Compute service name'
114114
run: |-
@@ -118,9 +118,9 @@ jobs:
118118
run: |-
119119
sed -i "s/run-full-yaml/${{ env.SERVICE_NAME }}/" ./tests/unit/service.yaml
120120
121-
- uses: 'actions/setup-node@v3'
121+
- uses: 'actions/setup-node@v4'
122122
with:
123-
node-version: '16.x'
123+
node-version: '20.x'
124124

125125
- run: 'npm ci && npm run build'
126126

.github/workflows/unit.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ jobs:
2525
runs-on: '${{ matrix.os }}'
2626

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

30-
- uses: 'actions/setup-node@v3'
30+
- uses: 'actions/setup-node@v4'
3131
with:
32-
node-version: '16.x'
32+
node-version: '20.x'
3333

3434
- name: 'npm build'
3535
run: 'npm ci && npm run build'

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ support](https://cloud.google.com/support).**
1616
the secrets being requested. See [Authorization](#authorization) for more
1717
information.
1818

19-
- This action runs using Node 16. If you are using self-hosted GitHub Actions
20-
runners, you must use runner version
21-
[2.285.0](https://github.com/actions/virtual-environments) or newer.
19+
- This action runs using Node 20. If you are using self-hosted GitHub Actions
20+
runners, you must use a [runner
21+
version](https://github.com/actions/virtual-environments) that supports this
22+
version or newer.
2223

2324

2425
## Usage
@@ -33,7 +34,7 @@ jobs:
3334
id-token: 'write'
3435

3536
steps:
36-
- uses: 'actions/checkout@v3'
37+
- uses: 'actions/checkout@v4'
3738

3839
- uses: 'google-github-actions/auth@v1'
3940
with:

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,5 +176,5 @@ branding:
176176
color: 'blue'
177177

178178
runs:
179-
using: 'node16'
179+
using: 'node20'
180180
main: 'dist/main/index.js'

dist/main/index.js

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example-app/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
# Use the official lightweight Node.js 16 image.
15+
# Use the official lightweight Node.js 20 image.
1616
# https://hub.docker.com/_/node
17-
FROM node:16-slim
17+
FROM node:20-slim
1818

1919
# Create and change to the app directory.
2020
WORKDIR /usr/src/app

0 commit comments

Comments
 (0)