Commit 5dd00bc9 authored by Eirik Alvær's avatar Eirik Alvær

Use NEXUS_NPM_CONFIG env var for publishing in gitlab ci.

parent f64c31b5
Pipeline #23935 failed with stage
in 17 seconds
......@@ -5,15 +5,15 @@ stages:
variables:
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- echo $NEXUS_NPM_CONFIG | tr ' ' '\n' > ~/.npmrc
test:
stage: test
except:
- tags
image: node:8-alpine
script:
- echo $NEXUS_NPM_TOKEN > ~/.npmrc
- echo 'always-auth=true' >> ~/.npmrc
- npm set @nsd:registry https://nexus.nsd.no/repository/npm-group/
- npm install
- npm run build
......@@ -23,9 +23,6 @@ publish:
- tags
image: node:8-alpine
script:
- echo $NEXUS_NPM_TOKEN > ~/.npmrc
- echo 'always-auth=true' >> ~/.npmrc
- npm set @nsd:registry https://nexus.nsd.no/repository/npm-group/
- npm install
- npm run build
- echo $NEXUS_NPM_PUB_TOKEN > ~/.npmrc
......
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