ci: attempt publish
This commit is contained in:
parent
716e315864
commit
b6619e2ea4
1 changed files with 15 additions and 13 deletions
28
.github/workflows/build.yml
vendored
28
.github/workflows/build.yml
vendored
|
|
@ -11,21 +11,23 @@ jobs:
|
||||||
os: [macos-latest, ubuntu-latest, windows-latest]
|
os: [macos-latest, ubuntu-latest, windows-latest]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out Git repository
|
- name: Checkout
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Node.js, NPM and Yarn
|
- uses: pnpm/action-setup@v4
|
||||||
uses: actions/setup-node@v1
|
name: Install pnpm
|
||||||
with:
|
with:
|
||||||
node-version: 10
|
version: 10
|
||||||
|
run_install: false
|
||||||
|
|
||||||
- name: Build/release Electron app
|
- name: Install Node.js
|
||||||
uses: samuelmeuli/action-electron-builder@v1
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
# GitHub token, automatically provided to the action
|
node-version: 20
|
||||||
# (No need to define this secret in the repo settings)
|
cache: "pnpm"
|
||||||
github_token: ${{ secrets.github_token }}
|
|
||||||
|
|
||||||
# If the commit is tagged with a version (e.g. "v1.0.0"),
|
- name: Install dependencies
|
||||||
# release the app after building
|
run: pnpm install
|
||||||
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
|
||||||
|
- name: Publish
|
||||||
|
run: pnpm publish
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue