@@ -4,7 +4,7 @@ version: 2.1
4
4
5
5
default_docker_image : &default_docker_image
6
6
docker :
7
- - image : circleci/node:12.21.0
7
+ - image : circleci/node:14.18
8
8
9
9
commands :
10
10
setup_job :
@@ -38,6 +38,14 @@ commands:
38
38
- run :
39
39
name : Hardhat Test
40
40
command : yarn test
41
+ publish :
42
+ steps :
43
+ - run :
44
+ name : setup
45
+ command : ./scripts/prepublish.sh
46
+ - run :
47
+ name : release
48
+ command : yarn semantic-release --debug
41
49
42
50
jobs :
43
51
checkout_and_compile :
@@ -53,10 +61,10 @@ jobs:
53
61
command : cp .env.default .env
54
62
- run :
55
63
name : Test npm token
56
- command : echo "//registry.npmjs.org/:_authToken=$NPM_READ_TOKEN "
64
+ command : echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN "
57
65
- run :
58
66
name : Authenticate with registry
59
- command : echo "//registry.npmjs.org/:_authToken=$NPM_READ_TOKEN " > ~/set-v2-strategies-deployments/.npmrc
67
+ command : echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN " > ~/set-v2-strategies-deployments/.npmrc
60
68
- run :
61
69
name : Fetch Dependencies
62
70
command : yarn install
@@ -145,38 +153,48 @@ jobs:
145
153
- setup_job
146
154
- test
147
155
156
+ release :
157
+ << : *default_docker_image
158
+ working_directory : ~/set-v2-deployments
159
+ steps :
160
+ - setup_job
161
+ - publish
162
+
148
163
workflows :
149
164
version : 2
150
165
build-and-test :
151
166
jobs :
152
167
- checkout_and_compile
153
- - ethereum_test :
154
- requires :
155
- - checkout_and_compile
156
- - ethereum_deployment :
157
- requires :
158
- - checkout_and_compile
159
- - polygon_test :
160
- requires :
161
- - checkout_and_compile
162
- - polygon_deployment :
163
- requires :
164
- - checkout_and_compile
165
- - arbitrum_test :
166
- requires :
167
- - checkout_and_compile
168
- - arbitrum_deployment :
169
- requires :
170
- - checkout_and_compile
171
- - avalanche_test :
172
- requires :
173
- - checkout_and_compile
174
- - avalanche_deployment :
175
- requires :
176
- - checkout_and_compile
177
- - optimism_test :
178
- requires :
179
- - checkout_and_compile
180
- - optimism_deployment :
168
+ # - ethereum_test:
169
+ # requires:
170
+ # - checkout_and_compile
171
+ # - ethereum_deployment:
172
+ # requires:
173
+ # - checkout_and_compile
174
+ # - polygon_test:
175
+ # requires:
176
+ # - checkout_and_compile
177
+ # - polygon_deployment:
178
+ # requires:
179
+ # - checkout_and_compile
180
+ # - arbitrum_test:
181
+ # requires:
182
+ # - checkout_and_compile
183
+ # - arbitrum_deployment:
184
+ # requires:
185
+ # - checkout_and_compile
186
+ # - avalanche_test:
187
+ # requires:
188
+ # - checkout_and_compile
189
+ # - avalanche_deployment:
190
+ # requires:
191
+ # - checkout_and_compile
192
+ # - optimism_test:
193
+ # requires:
194
+ # - checkout_and_compile
195
+ # - optimism_deployment:
196
+ # requires:
197
+ # - checkout_and_compile
198
+ - release :
181
199
requires :
182
200
- checkout_and_compile
0 commit comments