ci(gitlab): 在 CI 配置中添加淘宝镜像以加速 npm 安装
This commit is contained in:
parent
56ca150b6e
commit
93266d7aa8
@ -9,6 +9,7 @@ playwright_tests:
|
|||||||
- export NVM_DIR="$HOME/.nvm"
|
- export NVM_DIR="$HOME/.nvm"
|
||||||
- . "$NVM_DIR/nvm.sh"
|
- . "$NVM_DIR/nvm.sh"
|
||||||
- nvm use 20.17.0
|
- nvm use 20.17.0
|
||||||
|
- npm config set registry https://registry.npmmirror.com # 使用淘宝镜像
|
||||||
script:
|
script:
|
||||||
- npm install
|
- npm install
|
||||||
- npx playwright install
|
- npx playwright install
|
||||||
|
|||||||
Reference in New Issue
Block a user