From f73bbe25ee6c90cdda960f7405e9af821be42485 Mon Sep 17 00:00:00 2001 From: Clark Du Date: Wed, 3 Oct 2018 20:28:18 +0100 Subject: [PATCH] fix: only publish package include package.json (#4045) ## Types of changes - [x] Bug fix (a non-breaking change which fixes an issue) - [ ] New feature (a non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ## Description ## Checklist: - [ ] My change requires a change to the documentation. - [ ] I have updated the documentation accordingly. (PR: #) - [ ] I have added tests to cover my changes (if not applicable, please state why) - [ ] All new and existing tests are passing. --- .circleci/config.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 89fa8a7867..cedea9ff2c 100755 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -101,7 +101,13 @@ jobs: echo "//registry.yarnpkg.com/:_authToken=$NPM_TOKEN" >> ~/.npmrc BUILD_SUFFIX=edge yarn build npm publish - for p in packages/*; do cd $p ; npm publish ; cd - ; done + for p in packages/*; do + if [ -f "$p/package.json" ]; then + cd $p + npm publish + cd - + fi + done workflows: version: 2