Skip to content
This repository was archived by the owner on Feb 17, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all 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
49 changes: 49 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
version: 2

workflows:
version: 2
test_and_release:
jobs:
- test_and_make
- release:
filters:
branches:
only:
- master
requires:
- test_and_make

jobs:
test_and_make:
docker:
- image: circleci/node:10
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- run: sudo npm install -g npm@latest
- run: npm install
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- ./node_modules
- run: npm run make
- run: npm run lint
- run: npm run test
- run: npm run report-coverage
- persist_to_workspace:
root: .
paths:
- dist
- node_modules
- tag.txt
release:
docker:
- image: circleci/node:10
steps:
- attach_workspace:
at: .
- run:
name: publish package
command: |
npm publish --access public
23 changes: 0 additions & 23 deletions circle.yml

This file was deleted.

Loading