mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-25 18:37:19 +00:00
add beta release instructions, remove makefile for release
This commit is contained in:
parent
9f08b81c31
commit
b5deddf786
2 changed files with 7 additions and 26 deletions
18
Makefile
18
Makefile
|
|
@ -1,18 +0,0 @@
|
|||
VERSION := $(shell node -e "console.log(require('./package.json').version)")
|
||||
|
||||
.PHONY: default release
|
||||
|
||||
# Add a default task so we don't release just because someone ran 'make'
|
||||
default:
|
||||
@echo "Did you mean to release a new version?"
|
||||
@echo "If so, run 'make release'."
|
||||
|
||||
release:
|
||||
@echo "Tagging release $(VERSION)"
|
||||
@git tag -m "$(VERSION)" v$(VERSION)
|
||||
|
||||
@echo "Pushing tags to GitHub"
|
||||
@git push --tags
|
||||
|
||||
@echo "Done"
|
||||
@echo "Don't forget to check the binaries make it to the Github release page and npm publish"
|
||||
|
|
@ -17,15 +17,14 @@ We have an automated make task, we should always use this task to avoid forgetti
|
|||
1. Merge all changes and new features into master.
|
||||
2. Fill out changelog.md.
|
||||
3. Bump up npm version *AND* binary host version in `package.json`, commit and push.
|
||||
3. run command: `make release`
|
||||
|
||||
This task will do the following for you:
|
||||
|
||||
1. Generate new tags based on package.json version number
|
||||
2. Push tags to Github
|
||||
|
||||
From here, Travis and AppVeyor detect release tag commit, and build for release. As the builds (presumably) succeed you should see binaries showing up on the Github releases page. While you wait, why not copy the changelog updates into the release field? You probably want to wait (hours?) for Appveyor success, check that all binaries exist, and then finally don't forget to run `npm publish`
|
||||
4. Generate new tags based on package.json version number with `git tag -m "2.0.7" 2.0.7`
|
||||
5. Push tags to Github with `git push --tags`
|
||||
6. Publish to npm. BUT NOT YET. Builds can take hours and occasionally fail (mainly on Appveyor) for seemingly no reason. Restart any failures in the travis or appeveyor ui. While you wait, copy the changelog updates into the Github release field. When the entire matrix succeeds and all binaries exist run `npm publish`.
|
||||
|
||||
Differences for beta release
|
||||
* Work in a beta branch
|
||||
* Tag like: `git tag -m "2.0.7-beta1" 2.0.7-beta1`
|
||||
* Publish like `npm publish . --tag beta1`
|
||||
|
||||
## Config Travis, AppVeyor and Github to generate all of the binaries.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue