ci: attempt publish
This commit is contained in:
+15
-13
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user