Skip to content

Commit

Permalink
Update to Node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
ZephireNZ committed Jun 25, 2024
1 parent e64ea77 commit 37f80cc
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 13 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build-branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v3
- uses: actions/checkout@4
- uses: actions/setup-node@v4
with:
node-version: "16.x"
node-version-file: .nvmrc
- run: npm ci
- run: npm run build --if-present
- run: npm run build
13 changes: 6 additions & 7 deletions .github/workflows/deploy-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,19 @@ jobs:
contents: 'read'
id-token: 'write'
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "16.x"
node-version-file: .nvmrc
- run: npm ci
- run: npm run build --if-present
- run: npm run build
- name: Google Cloud Auth
uses: google-github-actions/auth@v1
uses: google-github-actions/auth@v2
with:
workload_identity_provider: projects/696313710540/locations/global/workloadIdentityPools/github-actions/providers/github-provider
service_account: github-actions@decent-space-136523.iam.gserviceaccount.com
- name: "Deploy"
uses: google-github-actions/deploy-appengine@v1
uses: google-github-actions/deploy-appengine@v2
with:
project_id: decent-space-136523
version: "${{ github.sha }}"
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.13.1
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": "My personal website, https://zephire.nz",
"type": "module",
"engines": {
"node": ">= 15"
"node": ">= 20"
},
"scripts": {
"build": "npm-run-all clean -p build:*",
Expand Down

0 comments on commit 37f80cc

Please sign in to comment.