chore: update GitHub workflows for consistency and clarity

- Standardized quotes in YAML files for better readability.
- Adjusted cache-dependency-path to point to the correct location.
- Removed unnecessary working-directory specifications to simplify the workflow.
This commit is contained in:
Cody Seibert
2025-12-11 21:14:17 -05:00
parent e6857c6feb
commit 2cc9e47747
2 changed files with 8 additions and 14 deletions

View File

@@ -22,12 +22,10 @@ jobs:
with:
node-version: "20"
cache: "npm"
cache-dependency-path: app/package-lock.json
cache-dependency-path: package-lock.json
- name: Install dependencies
working-directory: ./app
run: npm ci
- name: Run build:electron
working-directory: ./app
run: npm run build:electron

View File

@@ -3,13 +3,13 @@ name: Build and Release Electron App
on:
push:
tags:
- 'v*.*.*' # Triggers on version tags like v1.0.0
workflow_dispatch: # Allows manual triggering
- "v*.*.*" # Triggers on version tags like v1.0.0
workflow_dispatch: # Allows manual triggering
inputs:
version:
description: 'Version to release (e.g., v1.0.0)'
description: "Version to release (e.g., v1.0.0)"
required: true
default: 'v0.1.0'
default: "v0.1.0"
jobs:
build-and-release:
@@ -36,31 +36,27 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: apps/app/package-lock.json
node-version: "20"
cache: "npm"
cache-dependency-path: package-lock.json
- name: Install dependencies
working-directory: ./apps/app
run: npm ci
- name: Build Electron App (macOS)
if: matrix.os == 'macos-latest'
working-directory: ./apps/app
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run build:electron -- --mac --x64 --arm64
- name: Build Electron App (Windows)
if: matrix.os == 'windows-latest'
working-directory: ./apps/app
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run build:electron -- --win --x64
- name: Build Electron App (Linux)
if: matrix.os == 'ubuntu-latest'
working-directory: ./apps/app
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run build:electron -- --linux --x64