Skip to content

Workflow file for this run

name: Build and Release
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: macos-latest
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
APP_VERSION: ${{ github.ref_name }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
# New step to set the npm version
- name: Set app version
run: |
echo "Setting app version to $APP_VERSION"
npm version ${{ github.ref_name }} --no-git-tag-version
- name: Install dependencies
run: npm install
- name: Build the app
run: npm run build
- name: Package the app
run: |
npx electron-builder --mac --universal --publish always