ci(gitlab): 在 CI 配置中添加淘宝镜像以加速 npm 安装

This commit is contained in:
LingandRX 2025-03-13 19:33:26 +08:00
parent 56ca150b6e
commit 93266d7aa8

View File

@ -9,6 +9,7 @@ playwright_tests:
- export NVM_DIR="$HOME/.nvm"
- . "$NVM_DIR/nvm.sh"
- nvm use 20.17.0
- npm config set registry https://registry.npmmirror.com # 使用淘宝镜像
script:
- npm install
- npx playwright install