Skip to content

Commit

Permalink
ci: restore the functionality of generating conventional changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
xream committed Apr 21, 2024
1 parent e8eb1f1 commit 43301e0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,18 @@ jobs:
run: |
SUB_STORE_RELEASE=`node --eval="process.stdout.write(require('./package.json').version)"`
echo "release_tag=$SUB_STORE_RELEASE" >> $GITHUB_OUTPUT
- name: Prepare release
run: |
pnpm i -D conventional-changelog-cli
pnpm run changelog
- name: Release
uses: softprops/action-gh-release@v1
if: ${{ success() }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
body_path: ./CHANGELOG.md
tag_name: ${{ steps.tag.outputs.release_tag }}
generate_release_notes: true
# generate_release_notes: true
files: |
dist.zip
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "sub-store-front-end",
"version": "2.14.226",
"version": "2.14.228",
"private": true,
"scripts": {
"dev": "vite --host",
"dev:production": "vite --host --mode production",
"build": "vue-tsc --noEmit && vite build",
"preview": "vite preview --host"
"preview": "vite preview --host",
"changelog": "conventional-changelog -p cli -i CHANGELOG.md -s"
},
"dependencies": {
"@codemirror/autocomplete": "^6.12.0",
Expand Down

0 comments on commit 43301e0

Please sign in to comment.