diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 22da7ec51..2a4e2f32e 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -8,6 +8,7 @@ Here are some guides on how to do that:
- [Requesting New Features](#features)
- [Submitting a PR](#pr)
- [Commit Message Guidelines](#commit-messages)
+ - [Releasing new versions](#release)
## Code of Conduct
Help us keep a healthy and open community. We expect all participants in this project to adhere to the [NativeScript Code Of Conduct](https://github.com/NativeScript/codeofconduct).
@@ -209,3 +210,44 @@ If you want to contribute, but you are not sure where to start - look for [issue
[commit-message-format]: https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/edit#
+
+## Releasing new versions
+
+Instructions how to release a new version for **NativeScript Core Team Members**.
+
+1. Execute `npm install` to install dependencies:
+```bash
+npm install
+```
+
+2. Add the following to your `.npmrc`:
+```
+tag-version-prefix=""
+message="release: cut the %s release"
+```
+
+3. Create new branch based on `master`:
+```bash
+git checkout -b username/release-version
+```
+
+4. Execute [`npm version`](https://docs.npmjs.com/cli/version) to bump the version of `tns-platform-declarations`:
+```bash
+cd tns-platform-declarations
+npm --no-git-tag-version version [patch|minor|major]
+cd ..
+```
+
+5. Execute [`npm version`](https://docs.npmjs.com/cli/version) to bump the version of `tns-core-modules`, tag the release and update the CHANGELOG.md:
+```bash
+cd tns-core-modules
+npm version [patch|minor|major]
+cd ..
+```
+
+6. Push all the changes to your branch and open a pull request:
+```bash
+git push --set-upstream origin username/release-version --tags
+```
+
+7. Create `release` branch after the pull request is merged to `master` and publish the packages built on CI to `npm`.
diff --git a/tns-core-modules/package.json b/tns-core-modules/package.json
index 54d9d178d..2005b5cbc 100644
--- a/tns-core-modules/package.json
+++ b/tns-core-modules/package.json
@@ -1,7 +1,7 @@
{
"name": "tns-core-modules",
"description": "Telerik NativeScript Core Modules",
- "version": "4.3.0",
+ "version": "4.2.0",
"homepage": "https://www.nativescript.org",
"repository": {
"type": "git",
@@ -32,6 +32,9 @@
"@types/node": "~7.0.5",
"tns-platform-declarations": "*"
},
+ "scripts": {
+ "version": "conventional-changelog -p angular -i ../CHANGELOG.md -s && git add ../CHANGELOG.md"
+ },
"nativescript": {
"platforms": {
"ios": "4.0.0",
diff --git a/tns-platform-declarations/package.json b/tns-platform-declarations/package.json
index 947209e46..b13c76a00 100644
--- a/tns-platform-declarations/package.json
+++ b/tns-platform-declarations/package.json
@@ -1,6 +1,6 @@
{
"name": "tns-platform-declarations",
- "version": "4.3.0",
+ "version": "4.2.0",
"description": "Platform-specific TypeScript declarations for NativeScript for accessing native objects",
"main": "",
"scripts": {