From 8700220459d5e2ba8e11c9e13c3a87c140c7c982 Mon Sep 17 00:00:00 2001 From: Derek Cormier Date: Thu, 9 Jan 2025 10:49:58 -0800 Subject: [PATCH] chore: upgrade to node20 runtime (#195) --- deployment/modules/webhook/main.tf | 2 +- package.json | 3 ++- 2 files changed, 3 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 a086782..be30378 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "type": "module", "main": "./application/webhook/index.js", "engines": { - "node": "^18" + "node": "^20", + "pnpm": ">=9" }, "scripts": { "prebuild": "node tools/clean-dist-files.js",