From c9c284ecd7007f36265bdd4afd843b54eeb502b1 Mon Sep 17 00:00:00 2001 From: xsf0105 Date: Sun, 7 Apr 2024 10:38:33 +0800 Subject: [PATCH] feat: update yml --- .github/workflows/gen-changelog.yml | 21 +++++++++++++++++++++ .github/workflows/release-package.yml | 27 --------------------------- packages/core/package.json | 2 +- 3 files changed, 22 insertions(+), 28 deletions(-) create mode 100644 .github/workflows/gen-changelog.yml diff --git a/.github/workflows/gen-changelog.yml b/.github/workflows/gen-changelog.yml new file mode 100644 index 0000000..6fdc591 --- /dev/null +++ b/.github/workflows/gen-changelog.yml @@ -0,0 +1,21 @@ +on: + push: + # Pattern matched against refs/tags + tags: + - '*' + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - uses: BobAnkh/auto-generate-changelog@v1.2.5 + with: + REPO_NAME: 'hellof2e/quark-core' + ACCESS_TOKEN: ${{secrets.GIT_ACTION}} + PATH: '/packages/core/CHANGELOG.md' + COMMIT_MESSAGE: 'docs(CHANGELOG): update release notes' + TYPE: 'feat:Feature,fix:Bug Fixes,docs:Documentation,refactor:Refactor,perf:Performance Improvements' \ No newline at end of file diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml index 004a2f2..7b48878 100644 --- a/.github/workflows/release-package.yml +++ b/.github/workflows/release-package.yml @@ -71,7 +71,6 @@ jobs: git tag v${{ steps.package-version.outputs.version }} git push origin v${{ steps.package-version.outputs.version }} - # 下面主要是创建 github 的release # 关于创建 release 的更多参数,可以查看 actions/create-release@v1 - name: Create Release for Tag @@ -85,29 +84,3 @@ jobs: prerelease: false # 是否为预发布版本 body: | 请点击查看 [更新日志](https://github.com/hellof2e/quark-core/blob/main/packages/core/CHANGELOG.md). - - - - name: Run Changelog CI - uses: saadmk11/changelog-ci@v1.1.2 - with: - # Optional, you can provide any name for your changelog file, - # We currently support Markdown (.md) and reStructuredText (.rst) files - # defaults to `CHANGELOG.md` if not provided. - # changelog_filename: CHANGELOG.rst - # Optional, only required when you want more customization - # e.g: group your changelog by labels with custom titles, - # different version prefix, pull request title and version number regex etc. - # config file can be in JSON or YAML format. - # config_file: changelog-ci-config.json - # Optional, This will be used to configure git - # defaults to `github-actions[bot]` if not provided. - # committer_username: 'test' - # committer_email: 'test@test.com' - # Optional, only required when you want to run Changelog CI - # on an event other than `pull_request` event. - # In this example `release_version` is fetched from `workflow_dispatch` events input. - # You can use any other method to fetch the release version - # such as environment variable or from output of another action - release_version: ${{ steps.package-version.outputs.version }} - # Optional - github_token: ${{ secrets.GIT_ACTION }} \ No newline at end of file diff --git a/packages/core/package.json b/packages/core/package.json index 489275a..7252313 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "quarkc", - "version": "1.0.53", + "version": "1.0.54", "description": "A Web Components framework", "type": "module", "main": "./lib/index.umd.js",