mailymaily/old.gitlab-ci.yml

24 lines
403 B
YAML
Raw Normal View History

2020-08-30 13:05:24 +00:00
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
2020-08-30 13:05:24 +00:00
- npm run build
2020-08-30 13:12:58 +00:00
- echo '//registry.npmjs.org/:_authToken=$NPM_TOKEN'>.npmrc
2020-08-30 13:19:36 +00:00
- npm publish --access public