Merge pull request #116 from kleetus/release_notes
Added a note about the npm publish behavior.
This commit is contained in:
commit
32819cac9a
13
RELEASE.md
13
RELEASE.md
|
@ -17,19 +17,21 @@ To verify signatures, use the following PGP keys:
|
|||
|
||||
### How to Release
|
||||
|
||||
Ensure you've followed the instructions in the README.md for building the project from source. You will be using node-gyp to build the C++ bindings. A script will then upload the bindings to S3 for later use. You will also need credentials for BitPay's bitcore-node S3 bucket and be listed as an author for the bitcore-node's npm module.
|
||||
Ensure you've followed the instructions in the README.md for building the project from source. When building for any platform, be sure to keep in mind the minimum supported C and C++ system libraries and build from source using this library. Example, Ubuntu 12.04 has the earliest system library for Linux that we support, so it would be easiest to build the Linux artifact using this version. You will be using node-gyp to build the C++ bindings. A script will then upload the bindings to S3 for later use. You will also need credentials for BitPay's bitcore-node S3 bucket and be listed as an author for the bitcore-node's npm module.
|
||||
|
||||
- Create a file `.bitcore-node-upload.json` in your home directory
|
||||
- The format of this file should be:
|
||||
|
||||
```json
|
||||
{
|
||||
"region": "us-east-1",
|
||||
"region": "us-west-2",
|
||||
"accessKeyId": "xxx",
|
||||
"secretAccessKey": "yyy"
|
||||
}
|
||||
```
|
||||
|
||||
When publishing to npm, the .gitignore file is used to exclude files from the npm publishing process. Be sure that the bitcore-node directory has only the directories and files that you would like to publish to npm. You might need to run the commands below on each platform that you intend to publish (e.g. Mac and Linux).
|
||||
|
||||
To make a release, bump the version of the package.json:
|
||||
|
||||
```bash
|
||||
|
@ -48,3 +50,10 @@ And then update the version of the package.json for development (e.g. "0.3.2-dev
|
|||
git commit -a -m "Bump development version to <version>"
|
||||
git push upstream master
|
||||
```
|
||||
|
||||
Create a release tag and push it to the BitPay Github repo:
|
||||
|
||||
```bash
|
||||
git tag <version>
|
||||
git push upstream --tags
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue