fix build error #18
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
# 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 |