Commit 617aa2c4 authored by Thong Kuah's avatar Thong Kuah

Merge branch 'nfriend-fix-npm-template' into 'master'

Remove references to "gitlab.com" in NPM `.gitlab-ci.yml` template

See merge request gitlab-org/gitlab!36124
parents b8fedbf4 00289446
---
title: Remove hardcoded reference to gitlab.com in NPM .gitlab-ci.yml template
merge_request: 36124
author:
type: fixed
...@@ -34,9 +34,9 @@ create_npmrc: ...@@ -34,9 +34,9 @@ create_npmrc:
echo 'No .npmrc found! Creating one now. Please review the following link for more information: https://docs.gitlab.com/ee/user/packages/npm_registry/index.html#authenticating-with-a-ci-job-token' echo 'No .npmrc found! Creating one now. Please review the following link for more information: https://docs.gitlab.com/ee/user/packages/npm_registry/index.html#authenticating-with-a-ci-job-token'
{ {
echo "@${CI_PROJECT_ROOT_NAMESPACE}:registry=\${CI_SERVER_URL}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/" echo '@${CI_PROJECT_ROOT_NAMESPACE}:registry=${CI_SERVER_PROTOCOL}://${CI_SERVER_HOST}:${CI_SERVER_PORT}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/'
echo '//gitlab.com/api/v4/packages/npm/:_authToken=${CI_JOB_TOKEN}' echo '//${CI_SERVER_HOST}:${CI_SERVER_PORT}/api/v4/packages/npm/:_authToken=${CI_JOB_TOKEN}'
echo '//gitlab.com/api/v4/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=${CI_JOB_TOKEN}' echo '//${CI_SERVER_HOST}:${CI_SERVER_PORT}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=${CI_JOB_TOKEN}'
} >> .npmrc } >> .npmrc
fi fi
......
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