From ef6b3a494c166651a0c16776069b927d4a37d219 Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 25 May 2026 04:03:47 +0200 Subject: [PATCH] Use Node 22 in Calorie AI workflows --- .forgejo/workflows/release.yml | 6 +++++- .forgejo/workflows/web.yml | 6 +++++- app/build.gradle | 4 ++-- web/android/app/build.gradle | 4 ++-- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index 9925a9f..886e7c0 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -21,7 +21,11 @@ jobs: - name: Install tools run: | apt-get update - apt-get install -y --no-install-recommends ca-certificates curl nodejs npm unzip + apt-get install -y --no-install-recommends ca-certificates curl unzip + curl -fsSL https://deb.nodesource.com/setup_22.x | bash - + apt-get install -y --no-install-recommends nodejs + node --version + npm --version - name: Build web app and sync Capacitor env: diff --git a/.forgejo/workflows/web.yml b/.forgejo/workflows/web.yml index 45ca0ff..0a7fd77 100644 --- a/.forgejo/workflows/web.yml +++ b/.forgejo/workflows/web.yml @@ -19,7 +19,11 @@ jobs: - name: Install Node and browsers run: | apt-get update - apt-get install -y --no-install-recommends ca-certificates curl nodejs npm postgresql postgresql-client + apt-get install -y --no-install-recommends ca-certificates curl postgresql postgresql-client + curl -fsSL https://deb.nodesource.com/setup_22.x | bash - + apt-get install -y --no-install-recommends nodejs + node --version + npm --version service postgresql start su - postgres -c "psql -tc \"SELECT 1 FROM pg_roles WHERE rolname='calorie_ai'\" | grep -q 1 || psql -c \"CREATE USER calorie_ai WITH PASSWORD 'calorie_ai';\"" su - postgres -c "psql -tc \"SELECT 1 FROM pg_database WHERE datname='calorie_ai_test'\" | grep -q 1 || createdb -O calorie_ai calorie_ai_test" diff --git a/app/build.gradle b/app/build.gradle index 1678d49..4f8917f 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -12,8 +12,8 @@ android { applicationId 'com.danvics.calorieai' minSdk 26 targetSdk 35 - versionCode 8 - versionName '1.8' + versionCode 9 + versionName '1.9' } buildFeatures { diff --git a/web/android/app/build.gradle b/web/android/app/build.gradle index 3d9a48a..852f8fe 100644 --- a/web/android/app/build.gradle +++ b/web/android/app/build.gradle @@ -7,8 +7,8 @@ android { applicationId "com.danvics.calorieai" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 8 - versionName "1.8" + versionCode 9 + versionName "1.9" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" aaptOptions { // Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.