From 8953d96de2c2dfe75de5754021b5e6a25a7120d4 Mon Sep 17 00:00:00 2001 From: igor <igor.markin@vereign.com> Date: Mon, 7 Jun 2021 19:57:59 +0300 Subject: [PATCH] Add authentication to NPM --- .gitlab-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 41e361b..0981252 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,10 +8,11 @@ stages: install: stage: install - tags: + tags: - amd64-docker script: - apk add --no-cache git openssh + - npm config set '//registry.npmjs.org/:_authToken' $NPM_TOKEN - git config --global url."https://gitlab-ci-token:$CI_JOB_TOKEN@code.vereign.com/".insteadOf "git@code.vereign.com:" - echo '[http "https://code.vereign.com"]' >> $HOME/.gitconfig - echo " sslVerify = false" >> $HOME/.gitconfig @@ -27,7 +28,7 @@ install: test: stage: test - tags: + tags: - amd64-docker dependencies: - install -- GitLab