Commit 1f574143 authored by Fred Chasen's avatar Fred Chasen

Add install step to gitlab npm publish

parent 466764b9
......@@ -15,11 +15,10 @@ npm-test:
# 2. On https://gitlab.pagedmedia.org/tools/pagedjs/-/settings/ci_cd#js-cicd-variables-settings
# add a new variable named `NPM_TOKEN`, and toggle on _Protected_ and _Masked_
npm-publish:
# same as in Dockerfile's FROM stanza
image: node:12-stretch
stage: publish
before_script:
- 'echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc'
- npm install
- npm publish --public --dry-run
script:
- npm publish --public
......
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