File tree 2 files changed +29
-4
lines changed
2 files changed +29
-4
lines changed Original file line number Diff line number Diff line change 41
41
- attach_workspace : { at: . }
42
42
- restore_cache :
43
43
key : deps-{{ checksum "yarn.lock" }}
44
- - run :
45
- name : Run Linter (not enforcing for now)
46
- command : yarn lint || exit 0
47
44
- run :
48
45
name : Run Tests
49
46
command : yarn test
70
67
name : Snyk Setup
71
68
command : curl -sL https://raw.githubusercontent.com/segmentio/snyk_helpers/master/initialization/snyk.sh | sh
72
69
70
+ publish :
71
+ docker :
72
+ - image : ${AWS_ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com/analytics.js-integrations-ci
73
+ steps :
74
+ - attach_workspace : { at: . }
75
+ - restore_cache :
76
+ key : deps-{{ checksum "yarn.lock" }}
77
+ - run :
78
+ name : Authenticate npm
79
+ command : npm config set "//registry.npmjs.org/:_authToken" $NPM_AUTH
80
+ - run :
81
+ name : Publish packages
82
+ command : yarn lerna publish from-package --yes
83
+
73
84
workflows :
74
85
version : 2
75
86
test :
@@ -90,3 +101,12 @@ workflows:
90
101
context : snyk
91
102
requires :
92
103
- setup
104
+ - publish :
105
+ context : npm
106
+ requires :
107
+ - test
108
+ - test_saucelabs
109
+ - test_snyk
110
+ filters :
111
+ branches :
112
+ only : master
Original file line number Diff line number Diff line change 4
4
"version" : " independent" ,
5
5
"packages" : [
6
6
" integrations/*"
7
- ]
7
+ ],
8
+ "publish" : {
9
+ "ignoreChanges" : [
10
+ " *.md"
11
+ ]
12
+ }
8
13
}
You can’t perform that action at this time.
0 commit comments