Skip to content

Commit

Permalink
chore(workflow): generate changelog via GitHub (#5800)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan authored May 26, 2024
1 parent 2266cbe commit 2543148
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 10 deletions.
10 changes: 10 additions & 0 deletions .github/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"change: feat":
- "/^(feat|types|style)/"
"change: fix":
- "/^fix/"
"change: perf":
- "/^perf/"
"change: breaking":
- "/^breaking change/"
"change: docs":
- "/^docs/"
20 changes: 20 additions & 0 deletions .github/workflows/pr-label.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: PR Labeler

on:
pull_request_target:
types:
- opened
- edited

jobs:
change-labeling:
name: Labeling for changes
runs-on: ubuntu-latest
steps:
- uses: github/issue-labeler@v3.4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/pr-labeler.yml
enable-versioned-regex: 0
include-title: 1
sync-labels: 1
11 changes: 5 additions & 6 deletions .github/workflows/release-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master
uses: actions/checkout@v4

- name: Create Release for Tag
id: release_tag
uses: yyx990803/release-tag@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: ncipollo/release-action@v1
with:
tag_name: ${{ github.ref }}
generateReleaseNotes: "true"
body: |
更新内容参见 [CHANGELOG](https://vant-ui.github.io/vant-weapp/#/changelog)。
> 请访问 [更新日志](https://vant-ui.github.io/vant-weapp/#/changelog) 了解所有更新
3 changes: 0 additions & 3 deletions build/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,4 @@ then
else
npm publish
fi

# changelog
vant-cli changelog
fi
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"release": "sh build/release.sh",
"release:site": "vant-cli build-site && gh-pages -d site-dist --add",
"build:lib": "yarn && npx gulp -f build/compiler.js --series buildEs buildLib",
"build:changelog": "vant-cli changelog",
"upload:weapp": "node build/upload.js",
"test": "jest",
"test:watch": "jest --watch"
Expand Down

0 comments on commit 2543148

Please sign in to comment.