Untitled
unknown
plain_text
22 days ago
858 B
3
Indexable
Never
# 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 - fi
Leave a Comment