Electron #301
This file contains hidden or 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: 'Electron' | |
| on: | |
| workflow_run: | |
| workflows: | |
| - 'CI' | |
| types: | |
| - completed | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| permissions: | |
| id-token: write | |
| contents: write | |
| jobs: | |
| release: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ macos-latest, ubuntu-latest, windows-latest ] | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 #v6.0.1 | |
| - uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0 | |
| with: | |
| node-version: 20.x | |
| - name: Install Lerna | |
| working-directory: . | |
| run: yarn global add lerna | |
| - name: Install | |
| working-directory: . | |
| run: yarn --skip-integrity-check --no-lockfile --network-timeout 100000 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build all Modules | |
| working-directory: . | |
| run: yarn run build | |
| env: | |
| NODE_OPTIONS: --max_old_space_size=4096 | |
| - name: Build | |
| working-directory: ./packages/app/electron | |
| run: yarn run copy_app_files | |
| - name: Publish Electron app | |
| working-directory: ./packages/app/electron | |
| run: yarn run publish@electron | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |