File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -35,19 +35,24 @@ jobs:
35
35
targets : x86_64-unknown-linux-gnu
36
36
- name : Install dependencies
37
37
run : yarn install
38
+ - name : Install conventional-changelog-cli
39
+ run : npm install -g conventional-changelog-cli
38
40
- name : Update package.json version
39
41
run : |
40
42
npm version ${{ github.event.inputs.version }} --no-git-tag-version
41
43
- name : Update Cargo.toml version
42
44
run : |
43
45
sed -i 's/^version = ".*"/version = "${{ github.event.inputs.version }}"/' Cargo.toml
46
+ - name : Generate changelog
47
+ run : |
48
+ conventional-changelog -p conventionalcommits -i CHANGELOG.md -s
44
49
- name : Build to update generated files
45
50
run : yarn build --target x86_64-unknown-linux-gnu --use-napi-cross
46
51
- name : Commit version changes
47
52
run : |
48
53
git config --local user.email "[email protected] "
49
54
git config --local user.name "GitHub Action"
50
- git add package.json Cargo.toml index.js index.d.ts
55
+ git add package.json Cargo.toml index.js index.d.ts CHANGELOG.md
51
56
git commit -m "${{ github.event.inputs.version }}"
52
57
git push
53
58
- name : Set version output
You can’t perform that action at this time.
0 commit comments