Skip to content

Commit 3122efc

Browse files
committed
Added deploy workflow to circleci config
1 parent 20d65fd commit 3122efc

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.circleci/config.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,31 @@ jobs:
2323
- codecov/upload:
2424
file: coverage/*.json
2525
flags: frontend
26+
- persist_to_workspace:
27+
root: ~/react-forms
28+
paths:
29+
- "*"
30+
deploy:
31+
working_directory: ~/react-forms
32+
docker:
33+
- image: circleci/node
34+
steps:
35+
- attach_workspace:
36+
at: ~/react-forms
37+
- run:
38+
name: Authenticate with registry
39+
command: |
40+
npm set //registry.npmjs.org/:_authToken=$NPM_TOKEN
41+
yarn release
42+
43+
workflows:
44+
version: 2
45+
build_and_deploy:
46+
jobs:
47+
- build
48+
- deploy:
49+
requires:
50+
- build
51+
filters:
52+
branches:
53+
only: master

0 commit comments

Comments
 (0)