mirror of
https://github.com/spacebarchat/client.git
synced 2024-11-22 10:22:30 +01:00
come on ci
This commit is contained in:
parent
6c769e5ff4
commit
c5efb84f9e
2
.github/workflows/tauri.yml
vendored
2
.github/workflows/tauri.yml
vendored
@ -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
|
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
|
- name: Install Frontend Dependencies
|
||||||
run: pnpm i
|
run: pnpm i
|
||||||
|
- name: Run version generator
|
||||||
|
run: pnpm run ci:prebuild
|
||||||
- uses: spacebarchat/tauri-action@dev
|
- uses: spacebarchat/tauri-action@dev
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
10
package.json
10
package.json
@ -105,16 +105,16 @@
|
|||||||
"url": "git+https://github.com/spacebarchat/client.git"
|
"url": "git+https://github.com/spacebarchat/client.git"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "npm run ci:prebuild && tsc && vite build",
|
"build": "tsc && vite build",
|
||||||
"ci:prebuild": "node scripts/tauri-version.js",
|
"ci:prebuild": "node scripts/tauri-version.js",
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
||||||
"lint:fix": "pnpx prettier . --write",
|
"lint:fix": "pnpx prettier . --write",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"tauri:dev": "tauri dev",
|
"tauri:dev": "pnpm run ci:prebuild && tauri dev",
|
||||||
"tauri:build": "tauri build",
|
"tauri:build": "pnpm run ci:prebuild && tauri build",
|
||||||
"tauri:android:dev": "tauri android dev",
|
"tauri:android:dev": "pnpm run ci:prebuild && tauri android dev",
|
||||||
"tauri:android:build": "tauri android build"
|
"tauri:android:build": "pnpm run ci:prebuild && tauri android build"
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.1.1"
|
"version": "0.1.1"
|
||||||
|
@ -2,10 +2,10 @@ import fs from "fs";
|
|||||||
import path from "path";
|
import path from "path";
|
||||||
import process from "process";
|
import process from "process";
|
||||||
|
|
||||||
if (!process.env.CI) {
|
// if (!process.env.CI) {
|
||||||
console.log("Not running in CI, skipping. Please do not run this script manually!");
|
// console.log("Not running in CI, skipping. Please do not run this script manually!");
|
||||||
process.exit(0);
|
// process.exit(0);
|
||||||
}
|
// }
|
||||||
|
|
||||||
const GITHUB_RUN_ID = process.env.GITHUB_RUN_ID;
|
const GITHUB_RUN_ID = process.env.GITHUB_RUN_ID;
|
||||||
const GITHUB_RUN_ATTEMPT = process.env.GITHUB_RUN_ATTEMPT;
|
const GITHUB_RUN_ATTEMPT = process.env.GITHUB_RUN_ATTEMPT;
|
||||||
|
Loading…
Reference in New Issue
Block a user