Skip to content

Commit b5663aa

Browse files
authored
Merge pull request #3558 from plotly/improve-ci-publish-container
Improve CI publish container
2 parents 212a219 + 2dfda38 commit b5663aa

File tree

2 files changed

+16
-31
lines changed

2 files changed

+16
-31
lines changed

.circleci/config.yml

+16-12
Original file line numberDiff line numberDiff 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
153157
workflows:
154158
version: 2

tasks/bundle_plot_schema.js

-19
This file was deleted.

0 commit comments

Comments
 (0)