學到新招

在 GitLab CI 中,npm 安裝的 package 走 git+ssh 時,可以用

before_script:
  - git config --global url."https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.example.com/group/repo.git".insteadOf ssh://[email protected]:group/repo.git

繞過去

Reference