Skip to content

Commit

Permalink
chore: upgrade to node18 runtime (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
kormide authored Nov 12, 2023
1 parent 3f71202 commit 5e37fe9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
- run: yarn install --frozen-lockfile
- run: yarn build
- run: yarn test
2 changes: 1 addition & 1 deletion deployment/modules/webhook/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ resource "google_storage_bucket_object" "publish_to_bcr_function_bucket_object"
resource "google_cloudfunctions_function" "publish_to_bcr_function" {
name = "github-webhook"
description = "Handle incoming github events"
runtime = "nodejs16"
runtime = "nodejs18"

available_memory_mb = 512
source_archive_bucket = google_storage_bucket.source_archive_bucket.name
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"private": true,
"type": "module",
"main": "./application/cloudfunction/index.js",
"engines": {
"node": "^18"
},
"scripts": {
"prebuild": "node tools/clean-dist-files.js",
"build": "tsc && node tools/copy-dist-files.js",
Expand Down

0 comments on commit 5e37fe9

Please sign in to comment.