Skip to content

Commit

Permalink
[add] improving ci
Browse files Browse the repository at this point in the history
  • Loading branch information
filipecosta90 committed May 2, 2020
1 parent 12475cc commit 1d47cd6
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
version: 2.1
jobs:
build:
working_directory: ~/redisai-js

defaults: &defaults
working_directory: ~/redisai-js
docker:
- image: circleci/node:10.16.3
- image: redisai/redisai:edge

jobs:
build:
steps:
- checkout
- run:
Expand All @@ -28,12 +31,31 @@ jobs:
- store_test_results:
path: test-results.xml

deploy:
<<: *defaults
steps:
- attach_workspace:
at: ~/redisai-js
- run:
name: Authenticate with registry
command: echo "//registry.npmjs.org/:_authToken=$npm_TOKEN" > ~/redisai-js/.npmrc
- run:
name: Publish package
command: npm publish

workflows:
version: 2
commit:
jobs:
- build
- deploy:
requires:
- build
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/
nightly:
triggers:
- schedule:
Expand Down

0 comments on commit 1d47cd6

Please sign in to comment.