File tree Expand file tree Collapse file tree 2 files changed +16
-31
lines changed Expand file tree Collapse file tree 2 files changed +16
-31
lines changed Original file line number Diff line number Diff line change @@ -131,24 +131,28 @@ jobs:
131131 - attach_workspace :
132132 at : ~/plotly.js
133133 - run :
134- name : Update plot-schema.json
135- command : node tasks/bundle_plot_schema.js
134+ name : Build dist/
135+ command : npm run build
136136 - store_artifacts :
137- path : build/plotly.js
138- destination : /plotly.js
139- - store_artifacts :
140- path : dist/plotly.min.js
141- destination : /plotly.min.js
137+ path : dist
138+ destination : dist
139+ - run :
140+ name : Pack tarball
141+ command : |
142+ npm pack
143+ version=$(node -e "console.log(require('./package.json').version)")
144+ mv plotly.js-$version.tgz plotly.js.tgz
142145 - store_artifacts :
143- path : dist/plot-schema.json
144- destination : /plot-schema.json
146+ path : plotly.js.tgz
147+ destination : /plotly.js.tgz
145148 - run :
146149 name : Show URLs to build files
147150 command : |
148151 PROJECT_NUM=45646037
149- echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/plotly.js
150- echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/plotly.min.js
151- echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/plot-schema.json
152+ echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/plotly.js.tgz
153+ echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/dist/plotly.js
154+ echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/dist/plotly.min.js
155+ echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/dist/plot-schema.json
152156
153157workflows :
154158 version : 2
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments