From 8234b4264ca80998155c9226fc870212fb4f1c26 Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Thu, 25 Aug 2022 00:49:47 -0700 Subject: [PATCH] Skip database check during CI. --- .github/workflows/ci.yml | 1 + package.json | 2 +- scripts/check-db.js | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 80db33c660..c24c2e6d01 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,7 @@ on: [push] env: DATABASE_TYPE: postgresql + SKIP_DB_CHECK: 1 jobs: build: diff --git a/package.json b/package.json index b0ee7429c1..6142816ae5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "umami", - "version": "1.37.0", + "version": "1.38.0-beta.1", "description": "A simple, fast, privacy-focused alternative to Google Analytics.", "author": "Mike Cao ", "license": "MIT", diff --git a/scripts/check-db.js b/scripts/check-db.js index 821e7f7409..4de18a89f6 100644 --- a/scripts/check-db.js +++ b/scripts/check-db.js @@ -4,6 +4,11 @@ const chalk = require('chalk'); const spawn = require('cross-spawn'); const { execSync } = require('child_process'); +if (process.env.SKIP_DB_CHECK) { + console.log('Skipping database check.'); + process.exit(0); +} + const prisma = new PrismaClient(); function success(msg) {