Skip to content

Commit 835c6ad

Browse files
committed
chore(ci,docs): optimize CI workflows and add cloud-storage documentation
1 parent 8b88c4e commit 835c6ad

4 files changed

Lines changed: 19 additions & 5 deletions

File tree

‎.claude/skills/commit/SKILL.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ user-invocable: true
2020
3. 阅读仓库规范文件 [docs/git-commit-message-standard.md](../../../docs/git-commit-message-standard.md)。
2121
4. 检查当前 staged 变更。
2222
5. 如果没有 staged 变更,先将当前工作区改动加入暂存区。
23-
6. 如果 staged 或当前工作区改动中包含 `package.json` 或 `package-lock.json`,必须先执行 `/linux-native-binding-repair`,确认不存在 Linux native binding、optionalDependencies 或 lockfile 跨平台漂移问题。
23+
6. 如果 staged 或当前工作区改动中包含 `package.json` 或 `package-lock.json`,需要检查变更内容:
24+
- 如果 `package-lock.json` 有修改 **或者** `package.json` 的 `dependencies` 或 `devDependencies` 部分有修改,必须先执行 `/linux-native-binding-repair`,确认不存在 Linux native binding、optionalDependencies 或 lockfile 跨平台漂移问题。
25+
- 如果只有 `package.json` 的其他部分(如 scripts、workspaces 等)修改,且 `package-lock.json` 没有修改,则不需要执行 `/linux-native-binding-repair`。
2426
7. 基于暂存区差异生成 commit message,格式必须是 `<type>(<scope>): <subject>`。
2527
8. 如果用户传入参数,将其作为 subject,仍需自动补全 type 和 scope。
2628
9. 执行 git 提交。

‎.github/workflows/caddyfile_sdk.yml‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,16 @@ jobs:
3232
run: npm ci -ws --include-workspace-root
3333

3434
- name: Lint
35-
run: npm run lint -w @arylo/caddyfile-sdk
35+
run: npm run lint
36+
env:
37+
TURBO_FILTER: ./apps/caddyfile-sdk
3638

3739
- name: Test
38-
run: npm run test -w @arylo/caddyfile-sdk
40+
run: npm run test
41+
env:
42+
TURBO_FILTER: ./apps/caddyfile-sdk
3943

4044
- name: Build
41-
run: npm run build -w @arylo/caddyfile-sdk
45+
run: npm run build --ignore-scripts
46+
env:
47+
TURBO_FILTER: ./apps/caddyfile-sdk

‎.github/workflows/cloud_storage.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ jobs:
4242
TURBO_FILTER: ./apps/cf-worker/cloud-storage*
4343

4444
- name: Build
45-
run: npm run build
45+
run: npm run build --ignore-scripts
4646
env:
4747
TURBO_FILTER: ./apps/cf-worker/cloud-storage*
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# CLAUDE.md
2+
3+
## APIs
4+
5+
- `/`: 获取文件列表, 需使用pwd 获取或使用cookie
6+
- `/:filepath`: 获取文件, 需使用cookie 鉴权

0 commit comments

Comments
 (0)