Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
liweijie0812 committed Jan 10, 2025
1 parent b0be839 commit 94e0ae1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30014,7 +30014,9 @@ function getCdnIconfontVersion() {
}
function miniprogramUpdateIcons(repo, version) {
return __awaiter(this, void 0, void 0, function* () {
yield (0, exec_1.exec)('npm', ['install'], { cwd: `../${repo}` });
yield (0, exec_1.exec)('node', ['./script/update-icons.js', '--version ', version], { cwd: `../${repo}` });
yield (0, exec_1.exec)('git', ['status'], { cwd: `../${repo}` });
});
}
function start(context) {
Expand Down
2 changes: 2 additions & 0 deletions src/tdesign/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ export async function getCdnIconfontVersion(): Promise<string> {
return match?.[1] || ''
}
async function miniprogramUpdateIcons(repo: string, version: string) {
await exec('npm', ['install'], { cwd: `../${repo}` })
await exec('node', ['./script/update-icons.js', '--version ', version], { cwd: `../${repo}` })
await exec('git', ['status'], { cwd: `../${repo}` })
}
export default async function start(context: TriggerContext) {
const prData = await getPrData(context.owner, context.repo, context.pr_number, context.token)
Expand Down

0 comments on commit 94e0ae1

Please sign in to comment.