feat: v5.3.2 #64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Electron Build and Release | |
on: | |
push: | |
branches: | |
- 'main' | |
- 'master' | |
jobs: | |
release: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-latest, ubuntu-latest, macos-latest] | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v3 | |
- name: Setup PNPM | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9.4.0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
cache: 'pnpm' | |
- name: Install Setuptools for Python (macOS only) | |
if: matrix.os == 'macos-latest' | |
run: pip3 install setuptools --break-system-packages | |
- name: Install dependencies | |
run: | | |
cd electron | |
pnpm install --frozen-lockfile | |
- name: Build and Publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
cd electron | |
npm run publish |