Bump electron from 21.4.3 to 22.3.25 #36
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: CI/CD | |
on: | |
pull_request: {} | |
push: | |
tags: | |
- v*.*.* | |
jobs: | |
typecheck: | |
name: Typecheck | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out | |
uses: actions/checkout@v3 | |
- name: Set up node | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: .tool-versions | |
cache: yarn | |
- name: Install dependencies | |
run: yarn install --immutable --prefer-offline | |
- name: Typecheck | |
run: make typecheck | |
formatting: | |
name: Formatting | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out | |
uses: actions/checkout@v3 | |
- name: Set up node | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: .tool-versions | |
cache: yarn | |
- name: Install dependencies | |
run: yarn install --immutable --prefer-offline | |
- name: Typecheck | |
run: make formatting | |
build: | |
name: Build | |
runs-on: macos-latest | |
steps: | |
- name: Check out | |
uses: actions/checkout@v3 | |
- name: Set up node | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: .tool-versions | |
cache: yarn | |
- name: Install dependencies | |
run: yarn install --immutable --prefer-offline | |
- name: Set version | |
if: startsWith(github.ref, 'refs/tags/') | |
run: yarn version --no-git-tag-version --new-version "${GITHUB_REF:11}" | |
- name: Build renderer | |
run: make build packages | |
env: | |
NODE_OPTIONS: --openssl-legacy-provider | |
- name: Build Electron app | |
run: make app | |
- name: Upload app | |
uses: actions/upload-artifact@v3 | |
with: | |
name: app | |
path: bundle/NTS Desktop-*.dmg | |
release: | |
name: Release | |
needs: | |
- typecheck | |
- formatting | |
- build | |
runs-on: macos-latest | |
if: startsWith(github.ref, 'refs/tags/') | |
steps: | |
- name: Check out | |
uses: actions/checkout@v3 | |
- name: Download app | |
uses: actions/download-artifact@v3 | |
with: | |
name: app | |
path: bundle | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: bundle/NTS Desktop-*.dmg | |
generate_release_notes: true | |
fail_on_unmatched_files: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.github_token }} |