genie-logger
Version:
Reusable Node.js logger for platform Lambda services.
40 lines (36 loc) • 567 B
YAML
stages:
- setup
- test
- deploy
Setup:
stage: setup
tags:
- test-platform
script:
- npm i
artifacts:
paths:
- node_modules/
Test:
stage: test
tags:
- test-platform
dependencies:
- Setup
script:
- npm run test
- npm run lint
- npm audit
deploy:
stage: deploy
only:
- tags
- triggers
tags:
- test-platform
allow_failure: false
script:
- echo -e "//registry.npmjs.org/:_authToken=${NPM_TOKEN}\nunsafe-perm = true" > .npmrc
- npm run build
- npm publish --access public