We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 292a384 commit d9c2260Copy full SHA for d9c2260
‎.circleci/config.yml
@@ -0,0 +1,32 @@
1
+version: 2
2
+jobs:
3
+ build:
4
+ working_directory: /usr/src/app
5
+ docker:
6
+ - image: banian/node
7
+ steps:
8
+ # Checkout repository
9
+ - checkout
10
+
11
+ # Restore cache
12
+ - restore_cache:
13
+ key: yarn-{{ checksum "yarn.lock" }}
14
15
+ # Install dependencies
16
+ - run:
17
+ name: Install Dependencies
18
+ command: yarn
19
20
+ # Keep cache
21
+ - save_cache:
22
23
+ paths:
24
+ - node_modules
25
26
+ # Deploy to NPM
27
+ - deploy:
28
+ command: |
29
+ if [[ ${CIRCLE_COMMIT} =~ v[0-9]+(\.[0-9]+)* ]]; then
30
+ echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
31
+ npm publish
32
+ fi
0 commit comments