chore(.github): Update build workflow for Node.js 16 and Electron com… #5
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: Build/release | |
on: push | |
jobs: | |
release: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v1 | |
- name: Install Node.js, NPM and Yarn | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16 | |
- name: Compile Electron App | |
uses: x6Pnda/action-electron-compiler@v1 | |
with: | |
# GitHub token, automatically provided to the action | |
# (Optional) | |
github_token: ${{ secrets.github_token }} | |
# If the commit is tagged with a version (e.g. "v1.0.0"), | |
# (Optional) | |
release: ${{ startsWith(github.ref, 'refs/tags/v') }} | |
# Package manager. NPM, PNPM and Yarn supported. Install Yarn and PNPM yourself. Default is NPM | |
# (Optional) | |
package_manager: NPM | |
# Skip buiding the application | |
# (Optional) | |
skip_build: false |