Add npm/github deployment
This commit is contained in:
parent
1ba4492054
commit
86e32a3f31
|
@ -7,16 +7,33 @@ before_script: npm run lint
|
||||||
script: npm run test
|
script: npm run test
|
||||||
after_success: npm run coveralls
|
after_success: npm run coveralls
|
||||||
|
|
||||||
branches:
|
before_deploy:
|
||||||
only:
|
- cp -r doc solana_web3_api-$TRAVIS_BRANCH
|
||||||
- master
|
- tar zcf solana_web3_api-$TRAVIS_BRANCH.tgz solana_web3_api-$TRAVIS_BRANCH
|
||||||
|
- cp lib/index.js solana_web3.min.js
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
provider: pages
|
- provider: pages
|
||||||
skip-cleanup: true
|
skip-cleanup: true
|
||||||
github-token: $GITHUB_TOKEN
|
github-token: $GITHUB_TOKEN
|
||||||
keep-history: true
|
local-dir: doc
|
||||||
local-dir: doc
|
on:
|
||||||
on:
|
branch: master
|
||||||
branch: master
|
node_js: "lts/*"
|
||||||
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/*"
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,9 @@
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "http://github.com/solana-labs/solana-web3.js.git/issues"
|
"url": "http://github.com/solana-labs/solana-web3.js.git/issues"
|
||||||
},
|
},
|
||||||
|
"publishConfig": {
|
||||||
|
"access": "public"
|
||||||
|
},
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rimraf ./coverage ./lib",
|
"clean": "rimraf ./coverage ./lib",
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
Releasing a new version of this module is accomplished by running:
|
||||||
|
```
|
||||||
|
$ npm version patch
|
||||||
|
$ git push origin --tags
|
||||||
|
```
|
|
@ -11,7 +11,7 @@ const config = {
|
||||||
external: ['react', 'react-dom'],
|
external: ['react', 'react-dom'],
|
||||||
output: {
|
output: {
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
name: 'npmPackageES6Boilerplate',
|
name: 'solana_web3',
|
||||||
},
|
},
|
||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
|
|
Loading…
Reference in New Issue