140d33cf38
- 新增 8 个测试场景:基础安装、指定版本、淘宝镜像、自定义镜像源、缓存功能、跳过缓存、自定义包名、多版本矩阵 - 测试覆盖所有核心功能:版本管理、缓存策略、镜像源配置、输出验证 - 使用真实 npm 包(cowsay、figlet)进行实际安装测试 - 添加详细的测试结果验证和错误提示 - 统一更新所有文档和示例中的 action
22 lines
411 B
YAML
22 lines
411 B
YAML
name: Custom Registry Example
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: 检出代码
|
|
uses: actions/checkout@v4
|
|
|
|
- name: 使用自定义 npm 镜像源
|
|
uses: actions/xgj/setup-opencode@v1
|
|
with:
|
|
version: '1.2.3'
|
|
npm-registry: 'https://registry.npmmirror.com'
|
|
|
|
- name: 构建
|
|
run: |
|
|
opencode build
|