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:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: ["main", "electron"]
|
||||
branches: ["main"]
|
||||
paths:
|
||||
- 'frontend/**'
|
||||
- 'package.json'
|
||||
- 'package-lock.json'
|
||||
- 'frontend/electron/**'
|
||||
- '.github/workflows/build.yml'
|
||||
|
||||
concurrency:
|
||||
|
||||
@@ -5,6 +5,16 @@ on:
|
||||
# Runs on pushes targeting the default branch
|
||||
push:
|
||||
branches: ["main"]
|
||||
paths:
|
||||
- "backend/**"
|
||||
- "frontend/**"
|
||||
- "deployment/**"
|
||||
- "**/package.json"
|
||||
- ".nvmrc"
|
||||
- ".github/workflows/deploy.yml"
|
||||
- "!frontend/electron/**"
|
||||
- "!frontend/src/electron/**"
|
||||
- "!**.d.ts"
|
||||
workflow_dispatch:
|
||||
|
||||
# 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 { PRODUCT_NAME } from "./config";
|
||||
import "../../electron.d.ts";
|
||||
import { PRODUCT_NAME } from "../config.ts";
|
||||
|
||||
if (window.electronInterface !== undefined) {
|
||||
console.log("Running in Electron");
|
||||
@@ -16,4 +16,4 @@ import "./init";
|
||||
import "./profile";
|
||||
import "./message-context-menu";
|
||||
import "./user-profile-dialog";
|
||||
import "./electron";
|
||||
import "./electron/electron";
|
||||
Reference in New Issue
Block a user