Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,13 @@ jobs:
if [ $CIRCLE_BRANCH == "master" ]
then npm run use-draftlogs && git --no-pager diff --color-words CHANGELOG.md || true
fi
- run:
name: Set draft version in package.json
command: |
node --eval "var fs = require('fs'); var inOut = './package.json'; var data = JSON.parse(fs.readFileSync(inOut)); var a = process.argv; data.version = a[a.length - 1].replace('v', ''); fs.writeFileSync(inOut, JSON.stringify(data, null, 2) + '\n');" `git describe`
- run:
name: View package.json diff between previous and next releases (including above draft version change)
command: git --no-pager diff --color-words tags/$(git describe --tags --abbrev=0) package.json || true
- run:
name: Build dist/
command: npm run build
Expand All @@ -205,7 +212,7 @@ jobs:
name: Pack tarball
command: |
npm pack
version=$(node -e "console.log(require('./package.json').version)")
version=$(node --eval "console.log(require('./package.json').version)")
mv plotly.js-$version.tgz plotly.js.tgz
- store_artifacts:
path: plotly.js.tgz
Expand Down
1 change: 1 addition & 0 deletions draftlogs/5815_change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Label draft bundles and show package.json diff between versions when publishing dist artifacts on CircleCI [[#5815](https://github.com/plotly/plotly.js/pull/5815)]