diff --git a/web3.js/.travis.yml b/web3.js/.travis.yml index 68a009079..760165b4c 100644 --- a/web3.js/.travis.yml +++ b/web3.js/.travis.yml @@ -7,16 +7,33 @@ before_script: npm run lint script: npm run test after_success: npm run coveralls -branches: - only: - - master +before_deploy: + - cp -r doc solana_web3_api-$TRAVIS_BRANCH + - tar zcf solana_web3_api-$TRAVIS_BRANCH.tgz solana_web3_api-$TRAVIS_BRANCH + - cp lib/index.js solana_web3.min.js deploy: - provider: pages - skip-cleanup: true - github-token: $GITHUB_TOKEN - keep-history: true - local-dir: doc - on: - branch: master - node_js: "lts/*" + - provider: pages + skip-cleanup: true + github-token: $GITHUB_TOKEN + local-dir: doc + on: + branch: master + node_js: "lts/*" + - provider: releases + skip-cleanup: true + file: + - solana_web3.min.js + - solana_web3_api-$TRAVIS_BRANCH.tgz + api_key: $GITHUB_TOKEN + on: + tags: true + node_js: "lts/*" + - provider: npm + skip-cleanup: true + email: $NPM_EMAIL_ADDRESS + api_key: $NPM_AUTH_TOKEN + on: + tags: true + node_js: "lts/*" + diff --git a/web3.js/package.json b/web3.js/package.json index 7ef3c32ac..98fd48e79 100644 --- a/web3.js/package.json +++ b/web3.js/package.json @@ -16,6 +16,9 @@ "bugs": { "url": "http://github.com/solana-labs/solana-web3.js.git/issues" }, + "publishConfig": { + "access": "public" + }, "main": "lib/index.js", "scripts": { "clean": "rimraf ./coverage ./lib", diff --git a/web3.js/release-process.md b/web3.js/release-process.md new file mode 100644 index 000000000..c3dae9bd4 --- /dev/null +++ b/web3.js/release-process.md @@ -0,0 +1,5 @@ +Releasing a new version of this module is accomplished by running: +``` +$ npm version patch +$ git push origin --tags +``` diff --git a/web3.js/rollup.config.js b/web3.js/rollup.config.js index 33ac543ec..34b1d8288 100644 --- a/web3.js/rollup.config.js +++ b/web3.js/rollup.config.js @@ -11,7 +11,7 @@ const config = { external: ['react', 'react-dom'], output: { format: 'umd', - name: 'npmPackageES6Boilerplate', + name: 'solana_web3', }, plugins: [