From 1179f3819f529653d4a79a90fe9151e6d5ea9094 Mon Sep 17 00:00:00 2001 From: wenzhe Date: Wed, 14 Aug 2024 22:23:15 +0800 Subject: [PATCH] chore: update ci --- .github/workflows/changelog.yml | 25 +++++++++++++++++++++++++ .github/workflows/release.yml | 14 -------------- 2 files changed, 25 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/changelog.yml diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml new file mode 100644 index 0000000..2585156 --- /dev/null +++ b/.github/workflows/changelog.yml @@ -0,0 +1,25 @@ +name: Changelog + +permissions: + contents: write + +on: + push: + tags: + - 'v*' + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - uses: actions/setup-node@v3 + with: + node-version: 20.x + + - run: npx changelogithub # or changelogithub@0.12 if ensure the stable result + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9a40e04..f2068d0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -173,17 +173,3 @@ jobs: npm publish $package/ --tag latest --provenance --access public echo '----' done - - - name: Create GitHub Release - uses: softprops/action-gh-release@v2 - with: - body: ${{ steps.run.outputs.CHANGELOG }} - draft: true - files: depclean-* - name: depclean v${{ steps.run.outputs.VERSION }} - tag_name: depclean_v${{ steps.run.outputs.VERSION }} - fail_on_unmatched_files: true - target_commitish: ${{ github.sha }} - - - name: wait 1 minute for smoke test - run: sleep 60s