pshregistry-parser
Version:
Helper for library for accessing image data from the Platform.sh Registry and generating configuration files.
33 lines (27 loc) • 432 B
YAML
image: node:latest
stages:
- build
- test
- deploy
cache:
paths:
- node_modules/
install_dependencies:
stage: build
script:
- npm install
artifacts:
paths:
- node_modules/
test_with_lab:
stage: test
script: npm test
publish:
stage: deploy
only:
- tags
- triggers
script:
- npm run build
- echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > .npmrc
- npm publish