Skip to content

Commit 52b35b0

Browse files
committed
Enable tag based gating for CI publishing
1 parent 430670a commit 52b35b0

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

.circleci/config.yml

+20-4
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,38 @@ workflows:
33
version: 2
44
install-test-publish:
55
jobs:
6-
- install-dependencies
6+
- install-dependencies:
7+
filters:
8+
tags:
9+
only: /.*/
710
- test:
11+
filters:
12+
tags:
13+
only: /.*/
814
requires:
915
- install-dependencies
1016
- lint:
17+
filters:
18+
tags:
19+
only: /.*/
1120
requires:
1221
- install-dependencies
1322
- approve-publish-npm:
1423
type: approval
1524
filters:
25+
tags:
26+
only: /v[0-9]+(\.[0-9]+)*/
1627
branches:
17-
only: master
28+
ignore: /.*/
1829
requires:
1930
- test
2031
- lint
2132
- publish-npm:
33+
filters:
34+
tags:
35+
only: /v[0-9]+(\.[0-9]+)*/
36+
branches:
37+
ignore: /.*/
2238
requires:
2339
- approve-publish-npm
2440

@@ -45,8 +61,8 @@ jobs:
4561
paths:
4662
- node_modules
4763
- persist_to_workspace:
48-
root: ~/builds
49-
paths: .
64+
root: .
65+
paths: node_modules
5066

5167
test:
5268
<<: *default

0 commit comments

Comments
 (0)