@ruan-cat/vercel-deploy-tool 0.9.2 → 0.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +0 -58
  2. package/package.json +14 -10
package/README.md CHANGED
@@ -127,64 +127,6 @@ pnpm i -D tsx
127
127
 
128
128
  运行 `pnpm run deploy-vercel` 命令就能部署项目到 vercel 了。
129
129
 
130
- ### 配置 github action(可选)
131
-
132
- ```yaml
133
- name: 自写的vercel部署工具
134
- env:
135
- # 必须密文提供token
136
- VERCEL_TOKEN: ${{ secrets.vercel_token }}
137
- # 可以明文提供组织id和项目id
138
- # VERCEL_ORG_ID: ${{ secrets.vercel_orgId }}
139
- # VERCEL_PROJECT_ID: ${{ secrets.vercel_projectId }}
140
-
141
- on:
142
- push:
143
- branches:
144
- # 可以自选分支 为了避免过快耗尽vercel额度,建议只在main分支内触发部署
145
- - main
146
-
147
- jobs:
148
- Deploy-Production:
149
- runs-on: ubuntu-latest
150
- steps:
151
- - name: 检出分支
152
- uses: actions/checkout@v4
153
-
154
- - name: 安装pnpm
155
- uses: pnpm/action-setup@v4
156
- with:
157
- # 若项目提供了packageManager配置 这里可以不提供该配置
158
- # version: 9
159
- # 必须安装 vercel @dotenvx/dotenvx tsx 这三个全局包
160
- run_install: |
161
- - recursive: true
162
- - args: [--global, "vercel", "@dotenvx/dotenvx", "tsx"]
163
-
164
- - name: 安装node
165
- uses: actions/setup-node@v4
166
- with:
167
- node-version: 20.15.1
168
- cache: pnpm
169
-
170
- - name: 检查版本
171
- run: |
172
- node -v
173
- pnpm -v
174
- vc -v
175
-
176
- - name: pnpm全局检查依赖包
177
- run: pnpm ls -g
178
-
179
- - name: 运行自写的vercel部署工具
180
- # 读取环境变量
181
- # https://dotenvx.com/docs/cis/github-actions#install-dotenvx
182
- # pnpm run your-command
183
- run: |
184
- curl -sfS https://dotenvx.sh/install.sh | sh
185
- pnpm dotenvx run -- pnpm run deploy-vercel
186
- ```
187
-
188
130
  ## 路线图
189
131
 
190
132
  - [x] 封装打包命令,`vc deploy` 命令,并赋予生产环境 url。
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@ruan-cat/vercel-deploy-tool",
3
- "version": "0.9.2",
3
+ "version": "0.9.4",
4
4
  "description": "阮喵喵自用的vercel部署工具,用于实现复杂项目的部署。",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
7
7
  "types": "./src/index.ts",
8
- "homepage": "https://github.com/ruan-cat/monorepo/tree/main/packages/vercel-deploy-tool",
8
+ "homepage": "https://vercel-deploy-tool.ruancat6312.top",
9
9
  "bugs": {
10
10
  "url": "https://github.com/ruan-cat/monorepo/issues"
11
11
  },
12
12
  "repository": {
13
13
  "type": "git",
14
- "url": "git+https://github.com/ruan-cat/vercel-monorepo-test.git",
14
+ "url": "git+https://github.com/ruan-cat/monorepo.git",
15
15
  "directory": "packages/vercel-deploy-tool"
16
16
  },
17
17
  "exports": {
@@ -41,24 +41,28 @@
41
41
  "tsconfig.json"
42
42
  ],
43
43
  "dependencies": {
44
- "@dotenvx/dotenvx": "^1.38.3",
45
- "c12": "^3.0.2",
44
+ "@dotenvx/dotenvx": "^1.47.6",
45
+ "c12": "^3.1.0",
46
46
  "commander": "^13.1.0",
47
- "consola": "^3.4.0",
47
+ "consola": "^3.4.2",
48
48
  "gradient-string": "^3.0.0",
49
49
  "lodash-es": "^4.17.21",
50
50
  "pathe": "^2.0.3",
51
51
  "rimraf": "^6.0.1",
52
- "vercel": "^41.3.0",
53
- "@ruan-cat/utils": "^4.8.0"
52
+ "vercel": "^41.7.8",
53
+ "@ruan-cat/utils": "^4.9.0"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/gulp": "^4.0.17",
57
57
  "@types/lodash-es": "^4.17.12",
58
- "@types/node": "^22.13.8",
59
- "execa": "^9.5.3"
58
+ "@types/node": "^22.16.4",
59
+ "execa": "^9.6.0",
60
+ "vitepress": "^1.6.3",
61
+ "@ruan-cat/vitepress-preset-config": "^0.16.0"
60
62
  },
61
63
  "scripts": {
64
+ "docs:dev": "vitepress dev docs --port 8080",
65
+ "build:docs": "vitepress build docs",
62
66
  "—build-not-use-for-now": "tsc",
63
67
  "start": "node ./dist/index.js",
64
68
  "run": "node --import=tsx ./src/index.ts --env-path=.env.test",