Skip to content

Commit 06ba037

Browse files
committed
chore: add note about new release procedures
1 parent b60f3ea commit 06ba037

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

.github/workflows/release.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ jobs:
3333
path: node_modules/.cache/turbo
3434
key: turbo-cache-${{ runner.os }}
3535

36-
# generate current release changelog
37-
- run: pnpm jake release:changelog
38-
3936
# electron build
4037
- run: pnpm dist:mac
4138

@@ -50,11 +47,19 @@ jobs:
5047
# use
5148
# - run: echo "${{steps.github-script.outputs.id}}"
5249

50+
# generate current release changelog
51+
# - run: pnpm jake release:changelog
52+
53+
# release with changelog
54+
- run: pnpx changelogithub@0
55+
env:
56+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
57+
5358
# create release & upload to release
5459
- name: Release
5560
uses: softprops/action-gh-release@v2
5661
with:
57-
body_path: CHANGELOG.temp.md
62+
# body_path: CHANGELOG.temp.md
5863
fail_on_unmatched_files: true
5964
files: |
6065
./dist/latest-mac.yml

jakefile.ts/release.ts

+6
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
*
1010
*
1111
* 使用本地 build 并上传, jake release 即可.
12+
*
13+
* 2024-06-11
14+
* 使用 github actions 自动 build / changelog / release
15+
* 步骤:
16+
* 1. npm version patch or minor
17+
* 2. git push origin --all && git push origin --tags
1218
*/
1319

1420
import log from 'fancy-log'

0 commit comments

Comments
 (0)