Skip to content

fix build error

fix build error #18

Workflow file for this run

# if push master branch
# we execute this workflow
name: release
on:
push:
branches:
- master
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: '${{ github.workflow }} - ${{ github.ref_name }}'
cancel-in-progress: true
jobs:
release:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v3
with:
node-version: '18'
cache: yarn
- name: install npm packages
run: yarn
- name: vite build
run: yarn vite:build
- name: release
if: runner.os != 'macOS'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: yarn release
- name: release-mac
if: runner.os == 'macOS'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: yarn release --mac --x64 --arm64