Untitled
unknown
plain_text
a year ago
858 B
10
Indexable
# Check Node.js version
- NODE_VERSION=$(node -v | cut -d'.' -f1 | cut -c2-)
- if [[ $NODE_VERSION -le 16 ]]; then
- echo "registry = $NPM_REGISTRY_BASE_URL/$REPO/" >> .npmrc
- echo "email=$GITLAB_USER_EMAIL" >> .npmrc
- echo "$(echo $NPM_REGISTRY_BASE_URL | cut -c6-)/$REPO/:_auth=$REPO_TOKEN" >> .npmrc
- else
- echo "registry = $NPM_REGISTRY_BASE_URL/$REPO/" >> .npmrc
- echo "email=$GITLAB_USER_EMAIL" >> .npmrc
- echo "//$(echo $NPM_REGISTRY_BASE_URL | cut -c6-)/$REPO/:_authToken=$REPO_TOKEN" >> .npmrc
- fi
if [[ $NODE_VERSION -le 16 ]]; then
- echo "$(echo $NPM_REGISTRY_BASE_URL | cut -c6-)/$REPO/:_auth=$REPO_TOKEN" >> .npmrc
- else
- echo "//$(echo $NPM_REGISTRY_BASE_URL | cut -c6-)/$REPO/:_authToken=$REPO_TOKEN" >> .npmrc
- fiEditor is loading...
Leave a Comment