Skip to content

Commit

Permalink
feat: update yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xsf0105 committed Apr 7, 2024
1 parent 9d145ae commit c9c284e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 28 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/gen-changelog.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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'
27 changes: 0 additions & 27 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/[email protected]
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: '[email protected]'
# 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 }}
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit c9c284e

Please sign in to comment.