Skip to content

Commit

Permalink
Merge pull request #32 from anvilco/pl/node20-update
Browse files Browse the repository at this point in the history
Update to use node20
  • Loading branch information
patapat authored Mar 25, 2024
2 parents 3efddc4 + 1301ade commit 4e6636f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@ jobs:
env:
NODE_ENV: production
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
- uses: google-github-actions/setup-gcloud@v0
node-version: 20
- uses: google-github-actions/setup-gcloud@v2
with:
project_id: ${{ secrets.ETCH_DEMO_PROJECT }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
export_default_credentials: true
- name: Deploy the app
env:
ETCH_DEMO_PROJECT: ${{ secrets.ETCH_DEMO_PROJECT }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16
node-version: 20
- uses: actions/cache@v2
id: yarn-cache
with:
Expand All @@ -31,7 +31,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16
node-version: 20
- uses: actions/cache@v2
id: yarn-cache
with:
Expand All @@ -51,7 +51,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16
node-version: 20
- uses: actions/cache@v2
id: yarn-cache
with:
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18
v20
2 changes: 1 addition & 1 deletion app-template.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
runtime: nodejs16
runtime: nodejs20

env_variables:
# This is templated so you can replace prior to a deploy
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Anvil Etch E-Sign API Example App",
"main": "src/server/index.js",
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"scripts": {
"build": "NODE_ENV=production webpack --mode production",
Expand Down

0 comments on commit 4e6636f

Please sign in to comment.