Skip to content

Commit 2dfda38

Browse files
committed
run npm pack on publish Ci container
1 parent 2ee807b commit 2dfda38

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.circleci/config.yml

+10
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,20 @@ jobs:
136136
- store_artifacts:
137137
path: dist
138138
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
145+
- store_artifacts:
146+
path: plotly.js.tgz
147+
destination: /plotly.js.tgz
139148
- run:
140149
name: Show URLs to build files
141150
command: |
142151
PROJECT_NUM=45646037
152+
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/plotly.js.tgz
143153
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/dist/plotly.js
144154
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/dist/plotly.min.js
145155
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/dist/plot-schema.json

0 commit comments

Comments
 (0)