-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (64 loc) · 2.27 KB
/
release-major.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# ref: https://sevic.dev/notes/electron-forge-publish-github/
name: Release major
on:
workflow_dispatch:
jobs:
increment-semver:
runs-on: ubuntu-latest
permissions:
contents: write # 'write' access to repository contents
steps:
- name: Github checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Set up git name
run: |
git config --global user.email "[email protected]"
git config --global user.name "LiprikON2"
- name: Bump package.json version
run: npm version major
- name: Commit new version
run: |
git show
git push
build:
needs: [increment-semver]
environment: CI
strategy:
matrix:
os:
[
{ name: "windows", image: "windows-latest" },
{ name: "linux", image: "ubuntu-latest" },
{ name: "macos", image: "macos-11" },
]
fail-fast: true
runs-on: ${{ matrix.os.image }}
steps:
- name: Github checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
# ref: https://github.com/LinusU/node-appdmg/issues/234#issuecomment-2002410428
- name: Fix appdmg GHA mac runner error 1
if: matrix.os.name == 'macos'
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Fix appdmg GHA mac runner error 2
if: matrix.os.name == 'macos'
run: |
python3 -m pip install setuptools --break-system-packages
npm install -g [email protected]
- run: npm install
- name: Publish app
env:
GITHUB_TOKEN: ${{ secrets.GH_BOOKORD_RELEASE_TOKEN }}
run: npm run publish