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: with:
node-version: "20" node-version: "20"
cache: "npm" cache: "npm"
cache-dependency-path: app/package-lock.json cache-dependency-path: package-lock.json
- name: Install dependencies - name: Install dependencies
working-directory: ./app
run: npm ci run: npm ci
- name: Run build:electron - name: Run build:electron
working-directory: ./app
run: npm run build:electron run: npm run build:electron

View File

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