chore: initial semantic-release configuration

This commit is contained in:
Michael Vines 2018-09-28 21:08:58 -07:00
parent 721ce794e8
commit 7423943801
4 changed files with 5169 additions and 12 deletions

View File

@ -3,12 +3,18 @@ node_js:
- "lts/*"
- "node"
cache:
directories:
- ~/.npm
notifications:
email: false
script:
- npm run doc
- npm run flow
- npm run lint
- for example in examples/*.js; do node $example; done
after_success:
- npm run codecov
before_deploy:
@ -26,6 +32,13 @@ deploy:
on:
branch: master
node_js: "lts/*"
- provider: script
skip_cleanup: true
script:
- npx semantic-release
on:
branch: master
node_js: "lts/*"
- provider: releases
skip-cleanup: true
file:
@ -35,11 +48,11 @@ deploy:
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/*"
# - provider: npm
# skip-cleanup: true
# email: $NPM_EMAIL_ADDRESS
# api_key: $NPM_AUTH_TOKEN
# on:
# tags: true
# node_js: "lts/*"
#

View File

@ -1,4 +1,12 @@
✨ Thanks for contributing to **solana-web3.js*! ✨
As a contributor, here are the guidelines we would like you to follow:
* Ensure `npm run ok` passes before submitting a Pull Request
* Please follow semantic-release [commit message guidelines](https://github.com/semantic-release/semantic-release/blob/caribou/CONTRIBUTING.md#commit-message-guidelines)
# Reference
## Static Analysis
eslint and flow-type are used.

5134
web3.js/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"name": "@solana/web3.js",
"version": "0.0.7",
"version": "0.0.0-development",
"description": "Solana Javascript API",
"keywords": [
"api",
@ -11,7 +11,7 @@
"homepage": "https://solana.com/",
"repository": {
"type": "git",
"url": "http://github.com/solana-labs/solana-web3.js.git"
"url": "https://github.com/solana-labs/solana-web3.js.git"
},
"bugs": {
"url": "http://github.com/solana-labs/solana-web3.js.git/issues"
@ -38,7 +38,8 @@
"lint:fix": "npm run lint -- --fix",
"lint:watch": "watch 'npm run lint:fix' . --wait=1 --ignoreDirectoryPattern=/doc/",
"ok": "npm run lint && npm run flow && npm run test && npm run doc",
"prepare": "npm run clean && npm run ok && npm run build"
"prepare": "npm run clean && npm run ok && npm run build",
"re": "semantic-release --repository-url git@github.com:solana-labs/solana-web3.js.git"
},
"dependencies": {
"babel-runtime": "^6.26.0",
@ -81,6 +82,7 @@
"rollup-plugin-node-resolve": "3.4.0",
"rollup-plugin-replace": "2.0.0",
"rollup-plugin-uglify": "3.0.0",
"semantic-release": "^15.9.16",
"watch": "^1.0.2"
}
}