Skip to content

Commit 2bc2eff

Browse files
Add changelog
1 parent 502d8b3 commit 2bc2eff

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,24 @@ jobs:
3535
targets: x86_64-unknown-linux-gnu
3636
- name: Install dependencies
3737
run: yarn install
38+
- name: Install conventional-changelog-cli
39+
run: npm install -g conventional-changelog-cli
3840
- name: Update package.json version
3941
run: |
4042
npm version ${{ github.event.inputs.version }} --no-git-tag-version
4143
- name: Update Cargo.toml version
4244
run: |
4345
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
4449
- name: Build to update generated files
4550
run: yarn build --target x86_64-unknown-linux-gnu --use-napi-cross
4651
- name: Commit version changes
4752
run: |
4853
git config --local user.email "[email protected]"
4954
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
5156
git commit -m "${{ github.event.inputs.version }}"
5257
git push
5358
- name: Set version output

0 commit comments

Comments
 (0)