Skip to content
This repository has been archived by the owner on Jan 23, 2025. It is now read-only.

chore: use CircleCI for publish #109

Merged
merged 3 commits into from
Aug 6, 2018
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 11 additions & 40 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,64 +12,35 @@ workflows:
filters:
tags:
only: /.*/
- lint:
- publish_npm:
requires:
- node8
- node10
filters:
branches:
ignore: /.*/
tags:
only: /.*/
- docs:
requires:
- node8
- node10
filters:
tags:
only: /.*/

only: '/^v[\d.]+$/'
jobs:
node8:
docker:
- image: node:8
user: node
steps: &unit_tests_steps
- checkout
- run: &npm_install
name: Install modules and dependencies.
command: npm install
- run:
name: Run unit tests.
command: npm test
- run:
name: Submit coverage data to codecov.
command: node_modules/.bin/codecov
when: always
- run: npm install
- run: npm test
- run: node_modules/.bin/codecov
node10:
docker:
- image: node:10
user: node
steps: *unit_tests_steps
lint:
publish_npm:
docker:
- image: node:10
user: node
steps:
- checkout
- run: *npm_install
- run:
name: Run gts check.
command: npm run check
- run:
name: Run linting.
command: npm run lint

docs:
docker:
- image: node:10
- image: 'node:8'
user: node
steps:
- checkout
- run: *npm_install
- run:
name: Build documentation.
command: npm run docs
- run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc

This comment was marked as spam.

This comment was marked as spam.

- run: npm publish --access=public