diff --git a/web3.js/.npmignore b/web3.js/.npmignore index 7396f628a5..abb2aa2894 100644 --- a/web3.js/.npmignore +++ b/web3.js/.npmignore @@ -17,14 +17,16 @@ flow-typed/* # Sources, tests and builder files builder +deploy src test internals .flowconfig .babelrc .eslintignore -.eslintrc +.esdoc.json +.eslintrc.js .travis.yml jest.json renovate.json -rollup.config.js \ No newline at end of file +rollup.config.js diff --git a/web3.js/.travis.yml b/web3.js/.travis.yml index 628847a98d..b9a5898c9a 100644 --- a/web3.js/.travis.yml +++ b/web3.js/.travis.yml @@ -8,9 +8,11 @@ script: npm run test after_success: npm run coveralls before_deploy: - - cp -r doc solanaWeb3Api-$TRAVIS_BRANCH - - tar zcf solanaWeb3Api.tgz solanaWeb3Api-$TRAVIS_BRANCH - - cp lib/index.iife.js solanaWeb3.min.js + - rm -rf deploy + - mkdir -p deploy + - cp -r doc deploy/solanaWeb3Api-$TRAVIS_BRANCH + - cp lib/index.iife.js deploy/solanaWeb3.min.js + - ( cd deploy; tar zcf solanaWeb3Api.tgz solanaWeb3Api-$TRAVIS_BRANCH ) deploy: - provider: pages @@ -23,8 +25,8 @@ deploy: - provider: releases skip-cleanup: true file: - - solanaWeb3.min.js - - solanaWeb3Api.tgz + - deploy/solanaWeb3.min.js + - deploy/solanaWeb3Api.tgz api_key: $GITHUB_TOKEN on: tags: true