diff --git a/.github/pr-labeler.yml b/.github/pr-labeler.yml new file mode 100644 index 000000000..efcf918f1 --- /dev/null +++ b/.github/pr-labeler.yml @@ -0,0 +1,8 @@ +"change: feat": + - "/^(feat|perf|types|style)/" +"change: fix": + - "/^fix/" +"change: breaking": + - "/^breaking change/" +"change: docs": + - "/^docs/" diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 000000000..7e5a1afad --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,23 @@ +# .github/release.yml + +changelog: + exclude: + authors: + # Ignore the release PR created by github-actions + - github-actions + categories: + - title: Breaking Changes 🍭 + labels: + - "change: breaking" + - title: New Features 🎉 + labels: + - "change: feat" + - title: Bug Fixes 🐞 + labels: + - "change: fix" + - title: Document 📖 + labels: + - "change: docs" + - title: Other Changes + labels: + - "*" diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index c85fc8ddb..a3cff406a 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -11,15 +11,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@master + uses: actions/checkout@v3 + - name: Create Release for Tag id: release_tag - uses: yyx990803/release-tag@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - body: | - 更新内容参见 [CHANGELOG](https://vant-ui.github.io/vant/#/zh-CN/changelog)。 - - Please refer to [CHANGELOG](https://vant-ui.github.io/vant/#/en-US/changelog) for details. + uses: ncipollo/release-action@v1 + with: + generateReleaseNotes: true + body: | + Please refer to [CHANGELOG](https://vant-ui.github.io/vant/#/en-US/changelog) for all changelogs. + 请参阅 [CHANGELOG](https://vant-ui.github.io/vant/#/zh-CN/changelog) 了解所有更新日志。