Skip to content

Commit 174dfc8

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

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/auto-release.yml

Lines changed: 7 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,8 +19,14 @@ 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
28+
with:
29+
tag_name: ${{ steps.version.outputs.version }}
2430
env:
2531
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2632
- name: Add comment

0 commit comments

Comments
 (0)