From 5c8ca642a8d51693e6bc453ee523eb84d40fce86 Mon Sep 17 00:00:00 2001 From: hamster1963 <1410514192@qq.com> Date: Tue, 3 Dec 2024 10:14:42 +0800 Subject: [PATCH] fix: changelog --- .github/workflows/Build.yml | 20 +++----------------- changelogithub.config.json | 15 +++++++++++++++ 2 files changed, 18 insertions(+), 17 deletions(-) create mode 100644 changelogithub.config.json diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index f0df314..13665a9 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -34,22 +34,8 @@ jobs: with: files: dist.zip - changelog: - needs: release - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Set node - uses: actions/setup-node@v4 - with: - registry-url: https://registry.npmjs.org/ - node-version: lts/* - - - run: npx changelogithub + - name: Changelog + run: bun x changelogithub env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + diff --git a/changelogithub.config.json b/changelogithub.config.json new file mode 100644 index 0000000..b410eb3 --- /dev/null +++ b/changelogithub.config.json @@ -0,0 +1,15 @@ +{ + "types": { + "feat": { "title": "🚀 Features" }, + "fix": { "title": "🔧 Bug Fixes" }, + "docs": { "title": "📚 Documentation" }, + "style": { "title": "💄 Styles" }, + "refactor": { "title": "🔨 Refactor" }, + "perf": { "title": "🏎 Performance" }, + "test": { "title": "🚨 Tests" }, + "build": { "title": "🛠 Build" }, + "ci": { "title": "👷 CI" }, + "chore": { "title": "🛗 Chore" }, + "revert": { "title": "⏪ Revert" } + } +}