Skip to content

Commit

Permalink
change log and release
Browse files Browse the repository at this point in the history
  • Loading branch information
liuliu-dev committed Jul 15, 2024
1 parent 0117843 commit 11b439a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/publish-components-main.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
name: Publish Components Package

on:
push:
branches:
- main
workflow_dispatch:

concurrency:
group: npm-publish-${{ github.event.pull_request.number || github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand All @@ -26,6 +23,7 @@ jobs:
configurationJson: |
{
"template": "#{{CHANGELOG}}",
"pr_template": "- ${{TITLE}}\n - PR: #${{NUMBER}}",
"categories": [
{
"title": "## Components",
Expand Down Expand Up @@ -57,6 +55,11 @@ jobs:
yarn install --immutable
yarn dbuild
- name: Create Release
uses: softprops/action-gh-release
with:
body: ${{steps.changelog.outputs.changelog}}

- name: Publish to npm
if: steps.filter.outputs.components == 'true'
run: npm publish
Expand Down

0 comments on commit 11b439a

Please sign in to comment.