Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Skip database check during CI.

Mike Cao8234b4264ca8
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 80db33c66..c24c2e6d0 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 b0ee7429c..6142816ae 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 <[email protected]>",
"license": "MIT",
diff --git a/scripts/check-db.js b/scripts/check-db.js
index 821e7f740..4de18a89f 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) {