43 lines
918 B
YAML
43 lines
918 B
YAML
version: 2.1
|
|
|
|
jobs:
|
|
test:
|
|
docker:
|
|
- image: node:12.16-alpine
|
|
steps:
|
|
- checkout
|
|
- run: npm ci
|
|
- run: npm run format-check
|
|
- run: npm run test:junit-report
|
|
- store_test_results:
|
|
path: test-results
|
|
|
|
build_and_publish:
|
|
docker:
|
|
- image: node:12.16-alpine
|
|
steps:
|
|
- checkout
|
|
- run: npm ci
|
|
- run: npm run build
|
|
- run: npm run build:dev
|
|
- run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
|
|
- run: npm version --no-git-tag-version --force "${CIRCLE_TAG}"
|
|
- run: npm publish --access public
|
|
|
|
workflows:
|
|
version: 2
|
|
test_and_publish:
|
|
jobs:
|
|
- test:
|
|
filters:
|
|
tags:
|
|
only: /.*/
|
|
- build_and_publish:
|
|
requires:
|
|
- test
|
|
filters:
|
|
tags:
|
|
only: /.*/
|
|
branches:
|
|
ignore: /.*/
|