Fix number formatting and NaN issue #117
Workflow file for this run
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 | |
on: | |
pull_request: | |
branches: | |
- 'main' | |
workflow_call: | |
inputs: | |
release: | |
required: false | |
type: boolean | |
default: false | |
jobs: | |
build: | |
runs-on: ${{ matrix.settings.os }} | |
strategy: | |
matrix: | |
settings: | |
[ | |
{ os: ubuntu-latest, dir: 'release/linux-unpacked' }, | |
{ os: macos-latest, dir: 'release/mac' }, | |
{ os: windows-latest, dir: 'release/win-upacked' }, | |
] | |
steps: | |
- name: Configure git to checkout as-is and commit as-is | |
if: matrix.settings.os == 'windows-latest' | |
run: git config --global core.autocrlf false | |
- name: Check out Git repository | |
uses: actions/checkout@v3 | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: Install Dependencies | |
run: | | |
npm install node-gyp | |
npm install --ignore-scripts | |
- name: CI Check | |
run: npm run ci:check | |
- name: Build Electron | |
if: ${{ !inputs.release }} | |
run: | | |
npm run electron:buildPackage | |
- name: Publish | |
if: ${{ inputs.release }} | |
run: npm run publish | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |