Skip to content

Refactor package.json: Replace pnpx electron-builder with direct call… #98

Refactor package.json: Replace pnpx electron-builder with direct call…

Refactor package.json: Replace pnpx electron-builder with direct call… #98

name: electron-build
on: push
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
node-version: [18.x]
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Set up pnpm
uses: pnpm/action-setup@v4
- name: Install Dependencies
run: pnpm install --no-frozen-lockfile
- name: Build Electron App
run: pnpm run build
working-directory: ./native
- name: Build and publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pnpm run electron-builder --win --publish always --config.asar=false --config.asarUnpack=**
working-directory: ./native
- name: Upload Release Assets
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./release/**/*.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}