Skip to content

Label draft bundles and show package.json diff between versions when publishing dist artifacts on CircleCI #5815

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 9, 2021
Merged
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
@@ -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
@@ -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
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)]