Add circle ci publish task
This commit is contained in:
parent
3aee2ac8ab
commit
8fded0b98a
@ -1,7 +1,7 @@
|
|||||||
version: 2.1
|
version: 2.1
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test_and_publish:
|
test:
|
||||||
docker:
|
docker:
|
||||||
- image: node:12.16-alpine
|
- image: node:12.16-alpine
|
||||||
steps:
|
steps:
|
||||||
@ -9,11 +9,28 @@ jobs:
|
|||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run format-check
|
- run: npm run format-check
|
||||||
- run: npm run test
|
- run: npm run test
|
||||||
|
|
||||||
|
build_and_publish:
|
||||||
|
docker:
|
||||||
|
- image: node:12.16-alpine
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- run: npm ci
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
- run: npm run build:dev
|
- run: npm run build:dev
|
||||||
|
- run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
|
||||||
|
- run: npm publish --tag "${CIRCLE_TAG}" --access public
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
test_and_publish:
|
test_and_publish:
|
||||||
jobs:
|
jobs:
|
||||||
- test_and_publish
|
- test
|
||||||
|
- build_and_publish:
|
||||||
|
requires:
|
||||||
|
- test
|
||||||
|
filters:
|
||||||
|
tags:
|
||||||
|
only: /^\d+\.\d+\.\d+$/
|
||||||
|
branches:
|
||||||
|
ignore: /.*/
|
Loading…
Reference in New Issue
Block a user