Ts doc versioning in github and travis release branch #490
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi @rg911
This is my PR for GitHub multiple version documentation and the release branch CD. Let's assume the current version to be released is 0.17.4
TS-Docs:
Travis will push the ts-docs into the folder version, e.g. https://nemtech.github.io/symbol-sdk-typescript-javascript/0.17.4. The push only runs in master when running the node_js 8 job.
Releases from release branch:
The plan is, every time we want to release we create a PR from
masterto thereleasebranch. The PR will include the changelog update explaining the new features.Once PR is approved, Travis will pick up it, build and then it will perform a release: The release script (executed only when the branch is release and node js is version 8) will automatically:
post-releasebranch (package.json will have the new 0.17.5)Once Travis finishes, we have a few manual steps to be done:
post-releasetomaster. We need to remember to do this step. We could try pushing directly from Travis tomasterin step 5 but I think GitHub will complain.Note 1: We don't need to manually upgrade any version. Travis upgrades it.
Note 2: The release process only runs when pushing into the release branch. It doesn't run in any other branch