File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,14 @@ executors:
88 docker :
99 - image : cimg/node:20.12.2
1010
11+ deploy_filters : &deploy_filters
12+ filters :
13+ branches :
14+ ignore : /.*/
15+ tags :
16+ # Trigger on tags that begin with `v`
17+ only : /^v.*/
18+
1119commands :
1220 save_yarn_cache :
1321 description : Save Yarn cache for future build
@@ -61,10 +69,39 @@ jobs:
6169 name : Run unit tests
6270 command : yarn test
6371
72+ deploy :
73+ docker :
74+ - image : circleci/node
75+ steps :
76+ - checkout
77+ - restore_yarn_cache
78+ - run :
79+ name : Install dependencies and build
80+ command : yarn install --frozen-lockfile
81+ - run :
82+ name : Configure NPM authentication
83+ command : npm config set "//registry.npmjs.org/:_authToken" "$NPM_AUTOMATION_TOKEN"
84+ - run :
85+ name : Publish package
86+ command : yarn release:publish
87+
6488workflows :
6589 build_and_test :
6690 jobs :
6791 - build :
6892 matrix :
6993 parameters :
7094 eslint-version : *supported-eslint-versions
95+
96+ build_and_test_and_deploy :
97+ jobs :
98+ - build :
99+ << : *deploy_filters
100+ matrix :
101+ parameters :
102+ eslint-version : *supported-eslint-versions
103+
104+ - deploy :
105+ << : *deploy_filters
106+ requires :
107+ - build
You can’t perform that action at this time.
0 commit comments