Update desktop-publish.yml #7
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: Desktop App CI | |
on: | |
push: | |
branches: [ "main" ] | |
jobs: | |
build-and-publish: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
# Do not use unbuntu-latest because it causes `The operation was canceled` failures: | |
# https://github.com/actions/runner-images/issues/6709 | |
os: [macos-latest, ubuntu-latest, windows-2019] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.17.0' | |
# setup web | |
- name: Install web dependencies | |
run: npm install | |
working-directory: ./web | |
- name: Build web | |
run: npm run build | |
working-directory: ./web | |
env: | |
NODE_ENV: production | |
# desktop app | |
- name: Install app dependencies | |
run: npm install | |
working-directory: ./apps | |
- name: Build and Publish | |
run: npm run publish:desktop | |
working-directory: ./apps | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
NODE_ENV: production | |
ONEAUTH_SERVER_URL: ${{ secrets.ONEAUTH_SERVER_URL }} | |
ONEAUTH_APP_ID: ${{ secrets.ONEAUTH_APP_ID }} | |
NODE_OPTIONS: "--max_old_space_size=4096" |