mirror of
https://github.com/fromchat-messenger/web.git
synced 2026-09-22 19:15:08 +03:00
Optimize build workflows to trigger only when important files changed
This commit is contained in:
@@ -3,12 +3,10 @@ name: Build Electron Apps
|
|||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches: ["main", "electron"]
|
branches: ["main"]
|
||||||
paths:
|
paths:
|
||||||
- 'frontend/**'
|
- 'frontend/**'
|
||||||
- 'package.json'
|
- 'package.json'
|
||||||
- 'package-lock.json'
|
|
||||||
- 'frontend/electron/**'
|
|
||||||
- '.github/workflows/build.yml'
|
- '.github/workflows/build.yml'
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
|
|||||||
@@ -5,6 +5,16 @@ on:
|
|||||||
# Runs on pushes targeting the default branch
|
# Runs on pushes targeting the default branch
|
||||||
push:
|
push:
|
||||||
branches: ["main"]
|
branches: ["main"]
|
||||||
|
paths:
|
||||||
|
- "backend/**"
|
||||||
|
- "frontend/**"
|
||||||
|
- "deployment/**"
|
||||||
|
- "**/package.json"
|
||||||
|
- ".nvmrc"
|
||||||
|
- ".github/workflows/deploy.yml"
|
||||||
|
- "!frontend/electron/**"
|
||||||
|
- "!frontend/src/electron/**"
|
||||||
|
- "!**.d.ts"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
|
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import "../electron.d.ts";
|
import "../../electron.d.ts";
|
||||||
import { PRODUCT_NAME } from "./config";
|
import { PRODUCT_NAME } from "../config.ts";
|
||||||
|
|
||||||
if (window.electronInterface !== undefined) {
|
if (window.electronInterface !== undefined) {
|
||||||
console.log("Running in Electron");
|
console.log("Running in Electron");
|
||||||
@@ -16,4 +16,4 @@ import "./init";
|
|||||||
import "./profile";
|
import "./profile";
|
||||||
import "./message-context-menu";
|
import "./message-context-menu";
|
||||||
import "./user-profile-dialog";
|
import "./user-profile-dialog";
|
||||||
import "./electron";
|
import "./electron/electron";
|
||||||
Reference in New Issue
Block a user