mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-07-31 23:01:58 +08:00
ci: restore the functionality of generating conventional changelog
This commit is contained in:
parent
2301ccbfb5
commit
ac5232a7bc
8
.github/workflows/main.yml
vendored
8
.github/workflows/main.yml
vendored
@ -44,14 +44,20 @@ jobs:
|
|||||||
cd backend
|
cd backend
|
||||||
SUBSTORE_RELEASE=`node --eval="process.stdout.write(require('./package.json').version)"`
|
SUBSTORE_RELEASE=`node --eval="process.stdout.write(require('./package.json').version)"`
|
||||||
echo "release_tag=$SUBSTORE_RELEASE" >> $GITHUB_OUTPUT
|
echo "release_tag=$SUBSTORE_RELEASE" >> $GITHUB_OUTPUT
|
||||||
|
- name: Prepare release
|
||||||
|
run: |
|
||||||
|
cd backend
|
||||||
|
pnpm i -D conventional-changelog-cli
|
||||||
|
pnpm run changelog
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
if: ${{ success() }}
|
if: ${{ success() }}
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
|
body_path: ./backend/CHANGELOG.md
|
||||||
tag_name: ${{ steps.tag.outputs.release_tag }}
|
tag_name: ${{ steps.tag.outputs.release_tag }}
|
||||||
generate_release_notes: true
|
# generate_release_notes: true
|
||||||
files: |
|
files: |
|
||||||
./backend/sub-store.min.js
|
./backend/sub-store.min.js
|
||||||
./backend/dist/sub-store-0.min.js
|
./backend/dist/sub-store-0.min.js
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sub-store",
|
"name": "sub-store",
|
||||||
"version": "2.14.295",
|
"version": "2.14.297",
|
||||||
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
|
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
|
||||||
"main": "src/main.js",
|
"main": "src/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@ -11,7 +11,8 @@
|
|||||||
"dev:esbuild": "nodemon -w src -w package.json dev-esbuild.js",
|
"dev:esbuild": "nodemon -w src -w package.json dev-esbuild.js",
|
||||||
"dev:run": "nodemon -w sub-store.min.js sub-store.min.js",
|
"dev:run": "nodemon -w sub-store.min.js sub-store.min.js",
|
||||||
"build": "gulp",
|
"build": "gulp",
|
||||||
"bundle": "node bundle.js"
|
"bundle": "node bundle.js",
|
||||||
|
"changelog": "conventional-changelog -p cli -i CHANGELOG.md -s"
|
||||||
},
|
},
|
||||||
"author": "Peng-YM",
|
"author": "Peng-YM",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user