You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

24 lines
403 B

image: node:14
stages:
- publish
# Install the dependencies
before_script:
- npm install
cache:
paths:
- node_modules/
# Build the image and publish it to the npmjs registry.
publish:
stage: publish
only:
- tags
- triggers
script:
- npm version from-git
- npm run build
- echo '//registry.npmjs.org/:_authToken=$NPM_TOKEN'>.npmrc
- npm publish --access public