Skip to content

chore(release): prepare v0.15.0 #28

chore(release): prepare v0.15.0

chore(release): prepare v0.15.0 #28

Workflow file for this run

name: Release
on:
push:
tags:
- "v*.*.*"
workflow_dispatch:
permissions:
contents: write
concurrency:
group: release-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
desktop:
name: Build desktop package (${{ matrix.target }} ${{ matrix.arch }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: macos-latest
target: mac
arch: x64
- os: macos-latest
target: mac
arch: arm64
- os: windows-latest
target: win
arch: x64
- os: ubuntu-latest
target: linux
arch: x64
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.33.0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Verify tag matches package version
shell: bash
run: |
node <<'NODE'
const pkg = require('./package.json')
const tag = process.env.GITHUB_REF_NAME || ''
const version = tag.replace(/^v/, '')
if (version !== pkg.version) {
console.error(`Tag ${tag} does not match package.json version ${pkg.version}`)
process.exit(1)
}
NODE
- name: Build application
run: pnpm build
- name: Build packages and publish draft release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: pnpm exec electron-builder --${{ matrix.target }} --${{ matrix.arch }} --publish always