mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: add npm version script (#6168)
* chore: update versions * Update README.md * docs: add changelog for 4.2.0 (#6165) * chore: update versions * chore: update versions * chore: set versions of packages to 4.2.0 The versions of packages to reflect in `master` to reflect the `latest` official release in `npm`. Bumping up versions will execute in CI job through the `npm --no-git-tag-version version minor` command. This is to unify the release process across the `NativeScript`, `nativescript-angular` and `nativescript-dev-webpack` repositories. * chore: add npm version script * docs: add release section to CONTRIBUTING.md * chore: update npm version script * chore(deps): update to widgets@next * chore(deps): update to widgets@next * docs(CONTRIBUTING): update Releasing new versions section Add a note that these instructions concern NativeScript Core Team Members.
This commit is contained in:
@@ -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)
|
||||
|
||||
## <a name="coc"></a> 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#
|
||||
|
||||
## <a name="release"></a> 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`.
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user