Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions .github/workflows/auto-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,20 @@ jobs:
steps:
# 步骤1: 检出代码
- name: CheckOut Code
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
ref: ${{ github.ref_name }}

# 步骤2: 设置pnpm包管理器
- name: Setup pnpm
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@v5

# 步骤3: 设置Node.js环境
- name: Setup Node
uses: actions/setup-node@v4
uses: actions/setup-node@v5
Comment thread
coderabbitai[bot] marked this conversation as resolved.
with:
node-version: 20 # 使用Node.js 20版本
node-version: 22 # 使用Node.js 22版本
package-manager-cache: false
registry-url: 'https://registry.npmjs.org' # 设置npm registry地址

# 步骤4: 获取pnpm缓存目录路径
Expand All @@ -39,12 +40,12 @@ jobs:
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT

# 步骤5: 配置pnpm缓存
- uses: actions/cache@v3
- uses: actions/cache@v5
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
# 使用操作系统类型和pnpm-lock.yaml的哈希值作为缓存键
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
# 使用操作系统类型和依赖配置文件的哈希值作为缓存键
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/package.json', 'pnpm-workspace.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

Expand Down
21 changes: 11 additions & 10 deletions .github/workflows/deploy-playground-to-cdn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,20 @@ jobs:
steps:
# 步骤1: 检出代码
- name: CheckOut Code
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
ref: ${{ github.ref_name }}

# 步骤2: 设置pnpm包管理器
- name: Setup pnpm
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@v5

# 步骤3: 设置Node.js环境
- name: Setup Node
uses: actions/setup-node@v4
uses: actions/setup-node@v5
with:
node-version: 20 # 使用Node.js 20版本
node-version: 22 # 使用Node.js 22版本
package-manager-cache: false
registry-url: 'https://registry.npmjs.org' # 设置npm registry地址

# 步骤4: 获取pnpm缓存目录路径
Expand All @@ -64,12 +65,12 @@ jobs:
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT

# 步骤5: 配置pnpm缓存
- uses: actions/cache@v3
- uses: actions/cache@v5
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
# 使用操作系统类型和pnpm-lock.yaml的哈希值作为缓存键
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
# 使用操作系统类型和依赖配置文件的哈希值作为缓存键
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/package.json', 'pnpm-workspace.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

Expand Down Expand Up @@ -121,7 +122,7 @@ jobs:
run: ls -la ./packages/playground/dist

- name: Upload build artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: playground-dist
path: ./packages/playground/dist/
Expand All @@ -132,10 +133,10 @@ jobs:
needs: [check-secrets, build]
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Download build artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v7
with:
name: playground-dist
path: ./packages/playground/dist/
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/dispatch-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,20 @@ jobs:
steps:
# 步骤1: 检出代码
- name: CheckOut Code
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
ref: ${{ github.ref_name }}

# 步骤2: 设置pnpm包管理器
- name: Setup pnpm
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@v5

# 步骤3: 设置Node.js环境
- name: Setup Node
uses: actions/setup-node@v4
uses: actions/setup-node@v5
with:
node-version: 20 # 使用Node.js 20版本
node-version: 22 # 使用Node.js 22版本
package-manager-cache: false
registry-url: 'https://registry.npmjs.org' # 设置npm registry地址

# 步骤4: 获取pnpm缓存目录路径
Expand All @@ -57,12 +58,12 @@ jobs:
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT

# 步骤5: 配置pnpm缓存
- uses: actions/cache@v3
- uses: actions/cache@v5
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
# 使用操作系统类型和pnpm-lock.yaml的哈希值作为缓存键
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
# 使用操作系统类型和依赖配置文件的哈希值作为缓存键
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/package.json', 'pnpm-workspace.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/pr-ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,26 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Setup pnpm
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@v5

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v5
with:
node-version: 20
node-version: 22
package-manager-cache: false

- name: Get pnpm store directory
id: pnpm-cache
run: echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT

- name: Setup pnpm cache
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/package.json', 'pnpm-workspace.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

Expand All @@ -53,7 +54,7 @@ jobs:
run: echo "${{ github.event.pull_request.number }}" > pr_number.txt

- name: Upload build artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: build-${{ github.event.pull_request.head.sha || github.sha }}
path: |
Expand Down
17 changes: 9 additions & 8 deletions .github/workflows/pr-ci-e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,34 @@ jobs:
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Setup pnpm
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@v5

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v5
with:
node-version: 20
node-version: 22
package-manager-cache: false

- name: Get pnpm store directory
id: pnpm-cache
run: echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT

- name: Setup pnpm cache
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/package.json', 'pnpm-workspace.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install dependencies
run: pnpm i --no-frozen-lockfile

- name: Download build artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v7
with:
name: build-${{ github.event.pull_request.head.sha || github.sha }}
path: .
Expand All @@ -50,7 +51,7 @@ jobs:
run: pnpm test

- name: Upload Playwright Test Report
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
if: always()
with:
name: playwright-report-${{ github.sha }}
Expand Down
17 changes: 9 additions & 8 deletions .github/workflows/pr-ci-publish-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,34 +14,35 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Setup pnpm
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@v5

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v5
with:
node-version: 20
node-version: 22
package-manager-cache: false
registry-url: 'https://registry.npmjs.org'

- name: Get pnpm store directory
id: pnpm-cache
run: echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT

- name: Setup pnpm cache
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/package.json', 'pnpm-workspace.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install dependencies
run: pnpm i --no-frozen-lockfile

- name: Download build artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v7
with:
name: build-${{ github.event.pull_request.head.sha || github.sha }}
path: .
Expand All @@ -64,7 +65,7 @@ jobs:
fi

- name: Upload pkg.pr.new output
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: pkg-pr-new-output-${{ github.event.pull_request.head.sha || github.sha }}
path: pkg-pr-new-output.json
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download build artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v7
with:
name: build-${{ github.event.workflow_run.head_sha }}
path: artifacts
Expand All @@ -38,7 +38,7 @@ jobs:
fi

- name: Download pkg.pr.new output
uses: actions/download-artifact@v4
uses: actions/download-artifact@v7
with:
name: pkg-pr-new-output-${{ github.event.workflow_run.head_sha }}
path: pkg-artifacts
Expand Down
7 changes: 1 addition & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "robot-root",
"private": true,
"type": "module",
"packageManager": "pnpm@9.15.0",
"packageManager": "pnpm@10.34.5",
"scripts": {
"dev": "pnpm build:svgs && concurrently --names \"playground,docs\" --prefix-colors \"cyan,green\" \"pnpm dev:playground\" \"pnpm -F docs dev\"",
"build": "pnpm build:components",
Expand Down Expand Up @@ -40,10 +40,5 @@
"lint-staged": "^15.5.0",
"prettier": "^3.5.3",
"typescript": "^5.2.2"
},
"pnpm": {
"patchedDependencies": {
"vitepress-demo-plugin@1.5.0": "patches/vitepress-demo-plugin@1.5.0.patch"
}
}
}
3 changes: 3 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ packages:
- packages/**
- '!packages/cli/templates/**'
- docs

patchedDependencies:
vitepress-demo-plugin@1.5.0: patches/vitepress-demo-plugin@1.5.0.patch
Loading