From db21e08a845e21df67c7156b076a02c44d9fcb23 Mon Sep 17 00:00:00 2001 From: Derek Cormier Date: Wed, 8 Jan 2025 16:34:32 -0800 Subject: [PATCH] chore: upgrade to node20 runtime --- deployment/modules/webhook/main.tf | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deployment/modules/webhook/main.tf b/deployment/modules/webhook/main.tf index 4abebea..8f76e1a 100644 --- a/deployment/modules/webhook/main.tf +++ b/deployment/modules/webhook/main.tf @@ -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 = "nodejs18" + runtime = "nodejs20" available_memory_mb = 1024 source_archive_bucket = google_storage_bucket.source_archive_bucket.name diff --git a/package.json b/package.json index 55bafa3..68ae134 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "type": "module", "main": "./application/webhook/index.js", "engines": { - "node": "^18" + "node": "^20" }, "scripts": { "prebuild": "node tools/clean-dist-files.js",