Skip to content

Commit

Permalink
chore!: switch to nodejs 16 (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
sethvargo committed Jan 31, 2022
1 parent be1e860 commit 7c8e7d0
Show file tree
Hide file tree
Showing 10 changed files with 159 additions and 160 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/deploy-cloudrun-credentials-it.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
- id: service
run: echo ::set-output name=service::run-gcloud-$GITHUB_SHA
- uses: actions/checkout@v2
- uses: actions/setup-node@master
- uses: actions/setup-node@v2
with:
node-version: 12.x
node-version: '16.x'
- run: |-
npm ci
npm run build
Expand Down Expand Up @@ -48,9 +48,9 @@ jobs:
- id: service
run: echo ::set-output name=service::run-b64-$GITHUB_SHA
- uses: actions/checkout@v2
- uses: actions/setup-node@master
- uses: actions/setup-node@v2
with:
node-version: 12.x
node-version: '16.x'
- run: |-
npm ci
npm run build
Expand Down Expand Up @@ -81,9 +81,9 @@ jobs:
- id: service
run: echo ::set-output name=service::run-json-$GITHUB_SHA
- uses: actions/checkout@v2
- uses: actions/setup-node@master
- uses: actions/setup-node@v2
with:
node-version: 12.x
node-version: '16.x'
- run: |-
npm ci
npm run build
Expand Down Expand Up @@ -120,9 +120,9 @@ jobs:

- uses: actions/checkout@v2

- uses: actions/setup-node@master
- uses: actions/setup-node@v2
with:
node-version: 12.x
node-version: '16.x'

- run: |-
npm ci
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/deploy-cloudrun-it.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
- id: service
run: echo ::set-output name=service::run-envvars-$GITHUB_SHA
- uses: actions/checkout@v2
- uses: actions/setup-node@master
- uses: actions/setup-node@v2
with:
node-version: 12.x
node-version: '16.x'
- name: Build Javascript
run: |-
npm ci
Expand Down Expand Up @@ -72,9 +72,9 @@ jobs:
- id: service
run: echo ::set-output name=service::run-secret-manager-$GITHUB_SHA
- uses: actions/checkout@v2
- uses: actions/setup-node@master
- uses: actions/setup-node@v2
with:
node-version: 12.x
node-version: '16.x'
- name: Build Javascript
run: |-
npm ci
Expand Down Expand Up @@ -132,9 +132,9 @@ jobs:
- id: service
run: echo ::set-output name=service::run-yaml-$GITHUB_SHA
- uses: actions/checkout@v2
- uses: actions/setup-node@master
- uses: actions/setup-node@v2
with:
node-version: 12.x
node-version: '16.x'
- name: Build Javascript
run: |-
npm ci
Expand Down Expand Up @@ -170,9 +170,9 @@ jobs:
- id: service
run: echo ::set-output name=service::run-full-yaml-$GITHUB_SHA
- uses: actions/checkout@v2
- uses: actions/setup-node@master
- uses: actions/setup-node@v2
with:
node-version: 12.x
node-version: '16.x'
- name: Build Javascript
run: |-
npm ci
Expand Down Expand Up @@ -232,9 +232,9 @@ jobs:
- id: service
run: echo ::set-output name=service::run-revision-name-$GITHUB_SHA
- uses: actions/checkout@v2
- uses: actions/setup-node@master
- uses: actions/setup-node@v2
with:
node-version: 12.x
node-version: '16.x'
- name: Build Javascript
run: |-
npm ci
Expand Down Expand Up @@ -294,9 +294,9 @@ jobs:
TAG: hello
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@master
- uses: actions/setup-node@v2
with:
node-version: 12.x
node-version: '16.x'
- name: Build Javascript
run: |-
npm ci
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/deploy-cloudrun-traffic-it.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
- id: service
run: echo ::set-output name=service::run-source-$GITHUB_SHA
- uses: actions/checkout@v2
- uses: actions/setup-node@master
- uses: actions/setup-node@v2
with:
node-version: 12.x
node-version: '16.x'
- name: Build Javascript
run: |-
npm ci
Expand Down Expand Up @@ -72,9 +72,9 @@ jobs:
- id: service
run: echo ::set-output name=service::run-suffix-$GITHUB_SHA
- uses: actions/checkout@v2
- uses: actions/setup-node@master
- uses: actions/setup-node@v2
with:
node-version: 12.x
node-version: '16.x'
- name: Build Javascript
run: |-
npm ci
Expand Down Expand Up @@ -110,9 +110,9 @@ jobs:
- id: service
run: echo ::set-output name=service::run-tag-$(echo $GITHUB_SHA | cut -c1-6)
- uses: actions/checkout@v2
- uses: actions/setup-node@master
- uses: actions/setup-node@v2
with:
node-version: 12.x
node-version: '16.x'

- name: Build Javascript
run: |-
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

- uses: 'actions/setup-node@v2'
with:
node-version: '12.x'
node-version: '16.x'

- name: 'npm build'
run: 'npm ci && npm run build'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

- uses: 'actions/setup-node@v2'
with:
node-version: '12.x'
node-version: '16.x'

- name: 'npm build'
run: 'npm ci && npm run build'
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,5 +148,5 @@ outputs:
description: The URL of your Cloud Run service

runs:
using: node12
main: dist/index.js
using: 'node16'
main: 'dist/index.js'
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions example-app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Use the official lightweight Node.js 12 image.
# Use the official lightweight Node.js 16 image.
# https://hub.docker.com/_/node
FROM node:12-slim
FROM node:16-slim

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand Down
Loading

0 comments on commit 7c8e7d0

Please sign in to comment.