Skip to content

Commit

Permalink
feat(compliance): added the circle ci configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
RishikeshDarandale committed Jan 25, 2019
1 parent b7bdc8e commit a9245d3
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2

defaults: &defaults
working_directory: ~/repo
docker:
- image: circleci/node:10.9.0

jobs:
test:
<<: *defaults
steps:
- checkout
- run: npm ci
- run:
name: Do dependency audit
command: npm audit
- run:
name: Run tests
command: npm test
- persist_to_workspace:
root: ~/repo
paths: .
deploy:
<<: *defaults
steps:
- attach_workspace:
at: ~/repo
- run:
name: Authenticate with registry
command: echo "//registry.npmjs.org/:_authToken=$npm_TOKEN" > ~/repo/.npmrc
- run:
name: Publish package
command: npm publish

workflows:
version: 2
test-deploy:
jobs:
- test:
filters:
tags:
only: /^v.*/
- deploy:
requires:
- test
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/

0 comments on commit a9245d3

Please sign in to comment.