Skip to content

Commit

Permalink
Added publishing config
Browse files Browse the repository at this point in the history
  • Loading branch information
Nils-Kolvenbach committed Feb 1, 2024
1 parent 020746e commit c097360
Show file tree
Hide file tree
Showing 4 changed files with 892 additions and 721 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,11 @@ jobs:
run: yarn run lint
- name: Build
run: yarn run build
- name: Create pull request or publish to GitHub
uses: changesets/action@v1
with:
title: 'WIP: Release x.x.x'
commit: Release new version
publish: yarn run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13 changes: 13 additions & 0 deletions forge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,19 @@ const config: ForgeConfig = {
},
}),
],
publishers: [
{
name: '@electron-forge/publisher-github',
config: {
repository: {
owner: 'elek-io',
name: 'client',
},
prerelease: false,
draft: true,
},
},
],
plugins: [
new VitePlugin({
// `build` can specify multiple entry builds, which can be Main process, Preload scripts, Worker process, etc.
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"dev": "electron-forge start",
"package": "electron-forge package",
"build": "electron-forge make",
"publish": "electron-forge publish"
"release": "electron-forge publish"
},
"dependencies": {
"electron-squirrel-startup": "^1.0.0"
Expand All @@ -34,6 +34,7 @@
"@electron-forge/maker-squirrel": "^7.2.0",
"@electron-forge/plugin-auto-unpack-natives": "^7.2.0",
"@electron-forge/plugin-vite": "^7.2.0",
"@electron-forge/publisher-github": "^7.2.0",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"electron": "^28.2.1",
Expand Down
Loading

0 comments on commit c097360

Please sign in to comment.