Skip to content

Commit

Permalink
fix: building
Browse files Browse the repository at this point in the history
  • Loading branch information
songkeys committed Jul 4, 2024
1 parent ff02c01 commit f6b7e1d
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,35 @@ jobs:
- name: Check out Git repository
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v3
- name: Cache pnpm modules
uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: latest
run_install: true

- name: Set node
uses: actions/setup-node@v4
- name: Use Node.js 22.x
uses: actions/setup-node@v4.0.2
with:
node-version: 22.x
cache: "pnpm"

- name: Build/release Electron app
uses: phil-chp/action-electron-builder@v1
uses: songkeys/action-electron-builder@v1
with:
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
github_token: ${{ secrets.GITHUB_TOKEN }}

skip_install: true

# If the commit is tagged with a version (e.g. "v1.0.0"),
# release the app after building
release: ${{ startsWith(github.ref, 'refs/tags/v') }}

0 comments on commit f6b7e1d

Please sign in to comment.