From e981aba4067c6cc97904ff677b81ddfbd48c80e2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 23 Jan 2026 13:36:07 +0000 Subject: [PATCH 1/4] Initial plan From 029f1240bac495c5f74db598ac8f25c0a4dacaaf Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 23 Jan 2026 13:37:58 +0000 Subject: [PATCH 2/4] Add condition to sonar job to only run on PRs targeting main Co-authored-by: altaskur <105789412+altaskur@users.noreply.github.com> --- .github/workflows/on-main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/on-main.yml b/.github/workflows/on-main.yml index 434095f..6130256 100644 --- a/.github/workflows/on-main.yml +++ b/.github/workflows/on-main.yml @@ -10,6 +10,8 @@ on: jobs: sonar: name: Tests & SonarQube + # Solo ejecutar si la base del PR es realmente 'main' + if: github.base_ref == 'main' uses: ./.github/workflows/sonar.yml secrets: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} From a701b1f2c249a4cd5ca778c2df52f2b5d8a735bd Mon Sep 17 00:00:00 2001 From: Altaskur <105789412+altaskur@users.noreply.github.com> Date: Fri, 23 Jan 2026 18:27:11 +0100 Subject: [PATCH 3/4] fix: add macOS release build --- .github/workflows/release.yml | 48 ++++++++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ef6a361..ecd8e64 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -83,8 +83,45 @@ jobs: release/latest-linux.yml retention-days: 5 + build-macos: + runs-on: macos-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "20" + cache: "npm" + + - name: Install dependencies + run: npm ci + + - name: Generate Prisma client + run: npm run prisma:generate + + - name: Build application + run: npm run build + + - name: Build macOS packages + run: npx electron-builder --mac + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Upload macOS artifacts + uses: actions/upload-artifact@v4 + with: + name: macos-packages + path: | + release/*.dmg + release/*.zip + release/latest-mac.yml + retention-days: 5 + release: - needs: [build-windows, build-linux] + needs: [build-windows, build-linux, build-macos] runs-on: ubuntu-latest permissions: contents: write @@ -102,6 +139,12 @@ jobs: name: linux-packages path: ./release + - name: Download macOS artifacts + uses: actions/download-artifact@v4 + with: + name: macos-packages + path: ./release + - name: List release files run: ls -la ./release @@ -115,6 +158,9 @@ jobs: release/*.AppImage release/*.deb release/latest-linux.yml + release/*.dmg + release/*.zip + release/latest-mac.yml generate_release_notes: true prerelease: ${{ contains(github.ref, 'alpha') || contains(github.ref, 'beta') }} env: From 4053ba2bb6415009219842ca5ed1aa496a373309 Mon Sep 17 00:00:00 2001 From: Altaskur <105789412+altaskur@users.noreply.github.com> Date: Fri, 23 Jan 2026 18:34:14 +0100 Subject: [PATCH 4/4] chore: bump version to v1.0.0-alpha.3 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 13a93e9..67778a1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "open-time-tracker", - "version": "1.0.0-alpha.1", + "version": "1.0.0-alpha.3", "author": "altaskur", "license": "GPL-3.0", "type": "module",