From d1fa34a9b9f98bf48fb1d50bc2b3f3e6aa687db2 Mon Sep 17 00:00:00 2001 From: piotr-s-brainhub Date: Thu, 28 May 2020 17:19:13 +0200 Subject: [PATCH 1/4] build for each branch --- .circleci/config.yml | 12 +++++++++++- .gitignore | 5 ++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index bb3efefe..70a9c8d7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -48,7 +48,7 @@ jobs: - dependency-cache-- - run: name: Install Dependencies - command: yarn install + command: yarn install --non-interactive - save_cache: paths: - node_modules @@ -78,6 +78,16 @@ jobs: - run: name: Upload coverage to coveralls command: cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js + build: + <<: *defaults + steps: + - attach_workspace: + at: ~/react-file-input + - run: yarn build + - run: cd docs-www + - run: yarn install --non-interactive + - run: yarn build + - run: cd .. publish_package: <<: *defaults steps: diff --git a/.gitignore b/.gitignore index cd4196e4..06902a42 100644 --- a/.gitignore +++ b/.gitignore @@ -44,4 +44,7 @@ selenium-debug.log .npm.debug .eslintcache -.editorconfig \ No newline at end of file +.editorconfig + +docs-www/.cache/ +docs-www/public/ From 15a7b934977f0415fd8ef8ae444a1aaddf57eca0 Mon Sep 17 00:00:00 2001 From: piotr-s-brainhub Date: Thu, 28 May 2020 17:23:21 +0200 Subject: [PATCH 2/4] run build --- .circleci/config.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 70a9c8d7..5d6ee217 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -145,10 +145,14 @@ workflows: - test: requires: - checkout + - build: + requires: + - checkout - publish_package: requires: - lint - test + - build filters: branches: only: From d06bef5e6fafaa7b7dc5ee7406b074e879449673 Mon Sep 17 00:00:00 2001 From: piotr-s-brainhub Date: Thu, 28 May 2020 17:27:06 +0200 Subject: [PATCH 3/4] add docs-www to the whitelist --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5d6ee217..bf614c5a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -10,6 +10,7 @@ whitelist: &whitelist - src/ - test/ - tools/ + - docs-www - .babelrc - .eslintrc.json - .gitignore From 8b4ff0b4cdb7fc0559ad8eeafa59da81c77f34bd Mon Sep 17 00:00:00 2001 From: piotr-s-brainhub Date: Thu, 28 May 2020 17:28:05 +0200 Subject: [PATCH 4/4] add docs-www to .npmignore --- .npmignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .npmignore diff --git a/.npmignore b/.npmignore new file mode 100644 index 00000000..0882c712 --- /dev/null +++ b/.npmignore @@ -0,0 +1 @@ +docs-www/