Skip to content

Commit 5fb3173

Browse files
authored
chore!: upgrade to node16 (#243)
1 parent e05056b commit 5fb3173

9 files changed

+38
-29
lines changed

.github/workflows/deploy-appengine-creds-it.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
name: with setup-gcloud
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v3
1616
- uses: google-github-actions/setup-gcloud@master
1717
with:
1818
project_id: ${{ secrets.APPENGINE_DEPLOY_PROJECT_ID }}
@@ -59,7 +59,7 @@ jobs:
5959
name: with setup-gcloud - no project Id
6060
runs-on: ubuntu-latest
6161
steps:
62-
- uses: actions/checkout@v2
62+
- uses: actions/checkout@v3
6363
- uses: google-github-actions/setup-gcloud@master
6464
with:
6565
service_account_key: ${{ secrets.APPENGINE_DEPLOY_SA_KEY_JSON }}
@@ -106,7 +106,7 @@ jobs:
106106
name: with base64 json creds
107107
runs-on: ubuntu-latest
108108
steps:
109-
- uses: actions/checkout@v2
109+
- uses: actions/checkout@v3
110110
- name: Update app.yaml
111111
run: |-
112112
echo "service: ${{ github.job }}-${{ github.run_number }}" >> ${{ github.workspace }}/example-app/app.yaml
@@ -148,7 +148,7 @@ jobs:
148148
name: with json creds
149149
runs-on: ubuntu-latest
150150
steps:
151-
- uses: actions/checkout@v2
151+
- uses: actions/checkout@v3
152152
- name: Update app.yaml
153153
run: |-
154154
echo "service: ${{ github.job }}-${{ github.run_number }}" >> ${{ github.workspace }}/example-app/app.yaml
@@ -195,15 +195,15 @@ jobs:
195195
id-token: 'write'
196196

197197
steps:
198-
- uses: actions/checkout@v2
198+
- uses: actions/checkout@v3
199199

200200
- name: Update app.yaml
201201
run: |-
202202
echo "service: ${{ github.job }}-${{ github.run_number }}" >> ${{ github.workspace }}/example-app/app.yaml
203203
204-
- uses: 'actions/setup-node@v2'
204+
- uses: 'actions/setup-node@v3'
205205
with:
206-
node-version: '12.x'
206+
node-version: '16.x'
207207

208208
- id: build
209209
name: Build dist

.github/workflows/deploy-appengine-inputs-it.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
name: with flags
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v3
1616
- uses: google-github-actions/setup-gcloud@master
1717
with:
1818
project_id: ${{ secrets.APPENGINE_DEPLOY_PROJECT_ID }}
@@ -67,10 +67,10 @@ jobs:
6767
name: with bad inputs
6868
runs-on: ubuntu-latest
6969
steps:
70-
- uses: actions/checkout@v2
71-
- uses: actions/setup-node@master
70+
- uses: actions/checkout@v3
71+
- uses: actions/setup-node@v3
7272
with:
73-
node-version: 12.x
73+
node-version: 16.x
7474
- id: build
7575
name: Build dist
7676
run: |-

.github/workflows/deploy-appengine-it.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
name: with working directory
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v3
1616
- uses: google-github-actions/setup-gcloud@master
1717
with:
1818
project_id: ${{ secrets.APPENGINE_DEPLOY_PROJECT_ID }}
@@ -68,7 +68,7 @@ jobs:
6868
name: with deliverable path
6969
runs-on: ubuntu-latest
7070
steps:
71-
- uses: actions/checkout@v2
71+
- uses: actions/checkout@v3
7272
- uses: google-github-actions/setup-gcloud@master
7373
with:
7474
project_id: ${{ secrets.APPENGINE_DEPLOY_PROJECT_ID }}
@@ -124,7 +124,7 @@ jobs:
124124
name: with bad path
125125
runs-on: ubuntu-latest
126126
steps:
127-
- uses: actions/checkout@v2
127+
- uses: actions/checkout@v3
128128
- uses: google-github-actions/setup-gcloud@master
129129
with:
130130
project_id: ${{ secrets.APPENGINE_DEPLOY_PROJECT_ID }}

.github/workflows/example-workflow.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
runs-on: 'ubuntu-latest'
3232
steps:
33-
- uses: 'actions/checkout@v2'
33+
- uses: 'actions/checkout@v3'
3434

3535
- uses: 'google-github-actions/auth@v0'
3636
with:

.github/workflows/release.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ jobs:
1212
build:
1313
runs-on: 'ubuntu-latest'
1414
steps:
15-
- uses: 'actions/checkout@v2'
15+
- uses: 'actions/checkout@v3'
1616

17-
- uses: 'actions/setup-node@v2'
17+
- uses: 'actions/setup-node@v3'
1818
with:
19-
node-version: '12.x'
19+
node-version: '16.x'
2020

2121
- name: 'npm build'
2222
run: 'npm ci && npm run build'

.github/workflows/unit.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ jobs:
2525
- 'macos-latest'
2626

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

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

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

README.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,13 @@ background if not using in with the [`setup-gcloud` action][setup-gcloud].
2424

2525
## Prerequisites
2626

27-
This action requires Google Cloud credentials that are authorized to deploy an
28-
App Engine Application. See the [Authorization](#authorization) section below for more information.
27+
- This action requires Google Cloud credentials that are authorized to deploy
28+
an App Engine Application. See the [Authorization](#authorization) section
29+
below for more information.
30+
31+
- This action runs using Node 16. If you are using self-hosted GitHub Actions
32+
runners, you must use runner version [2.285.0](https://github.com/actions/virtual-environments)
33+
or newer.
2934

3035
## Usage
3136

action.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,18 @@ inputs:
6464
flags:
6565
description: |-
6666
Space separated list of other App Engine flags, examples can be found:
67-
https://cloud.google.com/sdk/gcloud/reference/app/deploy#FLAGS. Ex
67+
https://cloud.google.com/sdk/gcloud/reference/app/deploy#FLAGS. Ex
6868
[email protected] --no-cache
6969
required: false
7070

7171
outputs:
7272
url:
7373
description: URL of your App Engine Application
7474

75+
branding:
76+
icon: 'code'
77+
color: 'blue'
78+
7579
runs:
76-
using: node12
77-
main: dist/index.js
80+
using: 'node16'
81+
main: 'dist/index.js'

example-app/app.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Copyright 2020 Google, LLC.
2-
#
2+
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
55
# You may obtain a copy of the License at
6-
#
6+
#
77
# http://www.apache.org/licenses/LICENSE-2.0
88
#
99
# Unless required by applicable law or agreed to in writing, software
@@ -12,4 +12,4 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
runtime: nodejs12
15+
runtime: nodejs16

0 commit comments

Comments
 (0)