@@ -10,35 +10,43 @@ jobs:
10
10
install :
11
11
working_directory : ~/etherspot-modular-sdk
12
12
docker :
13
- - image : cimg/node:18.16 .1
13
+ - image : cimg/node:20.11 .1
14
14
auth :
15
15
username : $DOCKERHUB_USER
16
16
password : $DOCKERHUB_PASSWORD
17
17
steps :
18
18
- checkout
19
+ - run :
20
+ name : Install Bun
21
+ command : |
22
+ curl -fsSL https://bun.sh/install | bash
23
+ echo 'export BUN_INSTALL="$HOME/.bun"' >> $BASH_ENV
24
+ echo 'export PATH="$BUN_INSTALL/bin:$PATH"' >> $BASH_ENV
25
+ source $BASH_ENV
19
26
- run :
20
27
name : Authenticate with registry
21
28
command : echo "//registry.npmjs.org/:_authToken=$ETHERSPOT_NPM_TOKEN" > ~/etherspot-modular-sdk/.npmrc
22
29
- restore_cache :
23
- key : dependency-cache-{{ checksum "package.json " }}
30
+ key : dependency-cache-{{ checksum "bun.lockb " }}
24
31
- run :
25
32
name : Install dependencies
26
- command : npm install
33
+ command : bun install
27
34
- save_cache :
28
- key : dependency-cache-{{ checksum "package.json " }}
35
+ key : dependency-cache-{{ checksum "bun.lockb " }}
29
36
paths :
30
37
- ./node_modules
38
+ - ~/.bun
31
39
- run :
32
40
name : Dry run build
33
- command : npm run build
41
+ command : bun run build
34
42
# - slack/status:
35
43
# failure_message: "Triggered by: *${CIRCLE_USERNAME}* \n\n Ooops! The *$CIRCLE_JOB* job has failed! :circleci-fail:"
36
44
# webhook: "${SLACK_WEBHOOK_URL}"
37
45
38
46
e2e-tests :
39
47
working_directory : ~/etherspot-modular-sdk
40
48
docker :
41
- - image : cimg/node:18.16 .1
49
+ - image : cimg/node:20.11 .1
42
50
auth :
43
51
username : $DOCKERHUB_USER
44
52
password : $DOCKERHUB_PASSWORD
@@ -47,18 +55,24 @@ jobs:
47
55
- when :
48
56
condition : <<pipeline.parameters.run_e2e_tests>>
49
57
steps :
50
-
58
+ - run :
59
+ name : Install Bun
60
+ command : |
61
+ curl -fsSL https://bun.sh/install | bash
62
+ echo 'export BUN_INSTALL="$HOME/.bun"' >> $BASH_ENV
63
+ echo 'export PATH="$BUN_INSTALL/bin:$PATH"' >> $BASH_ENV
64
+ source $BASH_ENV
51
65
- restore_cache :
52
- key : dependency-cache-{{ checksum "package.json " }}
66
+ key : dependency-cache-{{ checksum "bun.lockb " }}
53
67
- run :
54
68
name : Authenticate with registry
55
69
command : echo "//registry.npmjs.org/:_authToken=$ETHERSPOT_NPM_TOKEN" > ~/etherspot-modular-sdk/.npmrc
56
70
- run :
57
71
name : Install dependencies
58
- command : npm install
72
+ command : bun install
59
73
- run :
60
74
name : Build Etherpot Modular SDK
61
- command : npm run build
75
+ command : bun run build
62
76
- run :
63
77
name : Checkout e2e repo and run tests
64
78
no_output_timeout : 60m
@@ -155,28 +169,35 @@ jobs:
155
169
publish-npm-package :
156
170
working_directory : ~/etherspot-modular-sdk
157
171
docker :
158
- - image : cimg/node:18.16 .1
172
+ - image : cimg/node:20.11 .1
159
173
auth :
160
174
username : $DOCKERHUB_USER
161
175
password : $DOCKERHUB_PASSWORD
162
176
steps :
163
177
- checkout
178
+ - run :
179
+ name : Install Bun
180
+ command : |
181
+ curl -fsSL https://bun.sh/install | bash
182
+ echo 'export BUN_INSTALL="$HOME/.bun"' >> $BASH_ENV
183
+ echo 'export PATH="$BUN_INSTALL/bin:$PATH"' >> $BASH_ENV
184
+ source $BASH_ENV
164
185
- restore_cache :
165
- key : dependency-cache-{{ checksum "package.json " }}
186
+ key : dependency-cache-{{ checksum "bun.lockb " }}
166
187
- run :
167
188
name : Authenticate with registry
168
189
command : echo "//registry.npmjs.org/:_authToken=$ETHERSPOT_NPM_TOKEN" > ~/etherspot-modular-sdk/.npmrc
169
190
- run :
170
191
name : Install dependencies
171
- command : npm install
192
+ command : bun install
172
193
- run :
173
194
name : Build Etherpot Prime SDK
174
- command : npm run build
195
+ command : bun run build
175
196
- run :
176
197
name : Publish package to npm
177
198
command : |
178
199
cd ~/etherspot-modular-sdk
179
- npm publish --access public
200
+ bun publish --access public
180
201
- run :
181
202
name : Announce Publish
182
203
command : |
0 commit comments