From 5023756c591de7c4f571bbc7a90a1d70edf27268 Mon Sep 17 00:00:00 2001 From: archmoj Date: Fri, 9 Jul 2021 13:03:22 -0400 Subject: [PATCH 1/2] label draft bundles and show package.json diff --- .circleci/config.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6cdd5a37ea2..113b0f5e9c6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 From a7dd3e92668a540ae981c02ff395f32ce5a2b7ba Mon Sep 17 00:00:00 2001 From: archmoj Date: Fri, 9 Jul 2021 13:35:02 -0400 Subject: [PATCH 2/2] draft log for PR 5815 --- draftlogs/5815_change.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 draftlogs/5815_change.md diff --git a/draftlogs/5815_change.md b/draftlogs/5815_change.md new file mode 100644 index 00000000000..dd4fef8b7b9 --- /dev/null +++ b/draftlogs/5815_change.md @@ -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)]