Skip to content

Commit a682dee

Browse files
committed
fix(ci): Fix npm cache directory permissions in CI,Refactor publish icon code logic
1 parent 1dad097 commit a682dee

File tree

9 files changed

+233
-321
lines changed

9 files changed

+233
-321
lines changed

packages/icons/PUBLISH_TODO.md

Lines changed: 0 additions & 24 deletions
This file was deleted.

packages/icons/package_publish.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@actiontech/icons",
33
"description": "",
4-
"version": "0.0.1-rc.7",
4+
"version": "1.0.0",
55
"main": "./dist/index.js",
66
"module": "./es/index.js",
77
"types": "./es/index.d.ts",
@@ -42,4 +42,4 @@
4242
"peerDependencies": {
4343
"react": ">=17"
4444
}
45-
}
45+
}

packages/icons/publish-icons.mjs

Lines changed: 0 additions & 253 deletions
This file was deleted.

scripts/cli/dms-kit-publish/src/config/environment.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import chalk from 'chalk';
2-
import 'dotenv/config';
31
import type { EnvironmentConfig } from '../types/index';
2+
import { errorLog, infoLog } from '../utils/logger';
3+
import 'dotenv/config';
44

55
// 获取当前环境
66
export const ENV = process.env.DEPLOY_ENV || 'production';
@@ -85,15 +85,13 @@ const environments: Record<string, EnvironmentConfig> = {
8585

8686
// 验证环境并获取配置
8787
if (!environments[ENV]) {
88-
console.error(chalk.red(`不支持的环境: ${ENV}`));
89-
console.error(
90-
chalk.red(`支持的环境: ${Object.keys(environments).join(', ')}`)
91-
);
88+
errorLog(`不支持的环境: ${ENV}`);
89+
errorLog(`支持的环境: ${Object.keys(environments).join(', ')}`);
9290
process.exit(1);
9391
}
9492

9593
// 导出当前环境配置
9694
export const config = environments[ENV];
9795

9896
// 输出当前环境信息
99-
console.log(chalk.blue(`\n当前部署环境: ${ENV}\n`));
97+
infoLog(`\n当前部署环境: ${ENV}\n`);

0 commit comments

Comments
 (0)