Skip to content

Commit b48e59a

Browse files
committed
ci: update auto-release.yml
1 parent 87f1542 commit b48e59a

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/auto-release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches: [develop]
66
types: [opened, synchronize, reopened, closed]
77
paths:
8-
- 'package.json'
8+
- 'packages/tdesign-miniprogram/package.json'
99
issue_comment:
1010
types: [edited]
1111

@@ -19,10 +19,15 @@ jobs:
1919
steps:
2020
- run: echo "The head of this PR starts with 'release/'"
2121
- uses: actions/checkout@v3
22+
- name: Extract version
23+
id: version
24+
run: |
25+
echo "version=$(node -p 'require("./packages/tdesign-miniprogram/package.json").version')" >> $GITHUB_OUTPUT
2226
- uses: TDesignOteam/tdesign-changelog-action@main
2327
id: changelog
2428
env:
2529
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
TAG_NAME: ${{ steps.version.outputs.version }}
2631
- name: Add comment
2732
uses: peter-evans/create-or-update-comment@v1
2833
with:

0 commit comments

Comments
 (0)