You need to sign in or sign up before continuing.
Commit dd7c16f8 authored by ThinhNC's avatar ThinhNC

ci: purge corrupted global vercel packages before reinstalling on shared shell runner

parent 23b5a0d3
Pipeline #53763 failed with stage
in 1 minute and 57 seconds
......@@ -22,6 +22,7 @@ deploy_preview:
- mkdir -p "$HOME/.npm-global"
- npm config set prefix "$HOME/.npm-global"
- export PATH="$HOME/.npm-global/bin:$PATH"
- rm -rf "$HOME/.npm-global/lib/node_modules/vercel" "$HOME/.npm-global/lib/node_modules/@vercel"
- npm install -g pnpm vercel
script:
- vercel pull --yes --environment=preview --token=$VERCEL_TOKEN
......@@ -46,6 +47,7 @@ deploy_production:
- mkdir -p "$HOME/.npm-global"
- npm config set prefix "$HOME/.npm-global"
- export PATH="$HOME/.npm-global/bin:$PATH"
- rm -rf "$HOME/.npm-global/lib/node_modules/vercel" "$HOME/.npm-global/lib/node_modules/@vercel"
- npm install -g pnpm vercel
script:
- vercel pull --yes --environment=production --token=$VERCEL_TOKEN
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment