1
0
mirror of https://github.com/spacebarchat/client.git synced 2024-11-21 18:02:32 +01:00

come on ci

This commit is contained in:
Puyodead1 2023-12-21 18:34:57 -05:00
parent 6c769e5ff4
commit c5efb84f9e
No known key found for this signature in database
GPG Key ID: A4FA4FEC0DD353FC
3 changed files with 11 additions and 9 deletions

View File

@ -31,6 +31,8 @@ jobs:
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libsoup-3.0-dev libjavascriptcoregtk-4.1-dev
- name: Install Frontend Dependencies
run: pnpm i
- name: Run version generator
run: pnpm run ci:prebuild
- uses: spacebarchat/tauri-action@dev
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -105,16 +105,16 @@
"url": "git+https://github.com/spacebarchat/client.git"
},
"scripts": {
"build": "npm run ci:prebuild && tsc && vite build",
"build": "tsc && vite build",
"ci:prebuild": "node scripts/tauri-version.js",
"dev": "vite",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"lint:fix": "pnpx prettier . --write",
"preview": "vite preview",
"tauri:dev": "tauri dev",
"tauri:build": "tauri build",
"tauri:android:dev": "tauri android dev",
"tauri:android:build": "tauri android build"
"tauri:dev": "pnpm run ci:prebuild && tauri dev",
"tauri:build": "pnpm run ci:prebuild && tauri build",
"tauri:android:dev": "pnpm run ci:prebuild && tauri android dev",
"tauri:android:build": "pnpm run ci:prebuild && tauri android build"
},
"type": "module",
"version": "0.1.1"

View File

@ -2,10 +2,10 @@ import fs from "fs";
import path from "path";
import process from "process";
if (!process.env.CI) {
console.log("Not running in CI, skipping. Please do not run this script manually!");
process.exit(0);
}
// if (!process.env.CI) {
// console.log("Not running in CI, skipping. Please do not run this script manually!");
// process.exit(0);
// }
const GITHUB_RUN_ID = process.env.GITHUB_RUN_ID;
const GITHUB_RUN_ATTEMPT = process.env.GITHUB_RUN_ATTEMPT;