Commit 3c598f99 authored by Eirik Alvær's avatar Eirik Alvær

Fix publish target in gitlab-ci file: Make sure sources are compiled.

parent c8d32d1d
Pipeline #17165 passed with stage
in 18 seconds
......@@ -7,6 +7,8 @@ variables:
test:
stage: test
except:
- tags
image: node:8-alpine
script:
- echo $NEXUS_NPM_TOKEN > ~/.npmrc
......@@ -21,6 +23,10 @@ publish:
- tags
image: node:8-alpine
script:
- echo $NEXUS_NPM_PUB_TOKEN > ~/.npmrc
- 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 compile
- echo $NEXUS_NPM_PUB_TOKEN > ~/.npmrc
- npm publish
\ No newline at end of file
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