Skip to content

Commit baa3002

Browse files
authored
chore: fix publish ci (Tencent#5085)
1 parent 30aaffa commit baa3002

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

.github/workflows/auto-release.yml

+10-3
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-vue-next/package.json"
99
issue_comment:
1010
types: [edited]
1111

@@ -18,11 +18,18 @@ jobs:
1818
startsWith(github.head_ref, 'release/')
1919
steps:
2020
- run: echo "The head of this PR starts with 'release/'"
21-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v4
22+
- uses: TDesignOteam/tdesign-tag-action@main
23+
id: tag-action
24+
with:
25+
token: ${{ secrets.GITHUB_TOKEN }}
26+
version_file: packages/tdesign-vue-next/package.json
2227
- uses: TDesignOteam/tdesign-changelog-action@main
2328
id: changelog
2429
env:
2530
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
with:
32+
tag: ${{ steps.tag-action.outputs.version }}
2633
- name: Add comment
2734
uses: peter-evans/create-or-update-comment@v1
2835
with:
@@ -78,7 +85,7 @@ jobs:
7885
token: ${{ secrets.PERSONAL_TOKEN }}
7986
- name: tag and push if needed
8087
run: |
81-
data=$(cat package.json)
88+
data=$(cat packages/tdesign-vue-next/package.json)
8289
re="\"version\": \"([^\"]*)\""
8390
[[ $data =~ $re ]]
8491
echo "${BASH_REMATCH[1]}"

.github/workflows/pr-compressed-size.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,15 @@ jobs:
1212
- uses: actions/checkout@v3
1313
with:
1414
submodules: recursive
15-
- uses: 94dreamer/compressed-size-action@master
15+
- name: Setup pnpm
16+
uses: pnpm/action-setup@v4
17+
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: 18
21+
22+
- uses: preactjs/compressed-size-action@v2
1623
with:
1724
repo-token: "${{ secrets.GITHUB_TOKEN }}"
18-
pattern: "./dist/**/*.{js,css}"
25+
install-script: "pnpm install"
26+
pattern: "packages/tdesign-vue-next/dist/**/*.{js,css}"

0 commit comments

Comments
 (0)