You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
#### If we prepare major or minor release, merge master in release branch else **skip this step**.
163
+
```
164
+
git merge --ff-only origin/master
165
+
```
166
+
*** Note: If there are commits in release branch which are not merged in master branch '-ff-merge' command will fail.
167
+
In this case the commits should be merge firstly from release in master branch as explained in section 'Merge changes from release into master' and then repeat step 1.
156
168
157
-
2. Add the following to your `.npmrc`.
169
+
2. Execute `npm i` to install dependencies:
170
+
```
171
+
npm i
172
+
```
173
+
3. Execute [`npm version`](https://docs.npmjs.com/cli/version) to bump the version:
158
174
```
159
-
tag-version-prefix=""
160
-
message="release: cut the %s release"
175
+
npm --no-git-tag-version version [patch|minor|major] -m "release: cut the %s release"
161
176
```
177
+
or
178
+
```
179
+
npm --no-git-tag-version version [version] --allow-same-version -m "release: cut the %s release"
162
180
163
-
3. Create new branch for the release:
164
181
```
165
-
git checkout -b username/release-version
182
+
7. Create release-branch with change log
183
+
```
184
+
git checkout -b release-[release-version]
166
185
```
167
186
168
-
4. Run `npm version` to bump the version in the `package.json`, tag the release and update the CHANGELOG.md:
187
+
7. Add changes
188
+
```
189
+
git add changed-files
190
+
git commit -m "release: cut the %s release"
191
+
git push
192
+
```
193
+
8. Create git tag
169
194
```
170
-
npm version [patch|minor|major]
195
+
git tag release-version
196
+
git push --tags
171
197
```
198
+
9. Create a pull request from git in web or try to use script below. Be careful to base your branch on the correct "release" branch
199
+
```
200
+
curl -d '{"title": "release: cut the [release-version] release","body": "docs: update changelog","head": "${BRANCH}","base": "release"}' -X POST https://api.github.com/repos/NativeScript/nativescript-dev-webpack/pulls -H "Authorization: token ${GIT_TOKEN}"
201
+
```
202
+
10. Merge PR into release branch.
203
+
204
+
11. If all checks has passed publish package. Usually the night builds will be triggered and the package will be ready to be released on the next day.
172
205
173
-
5. Push all changes to your branch and create a PR.
0 commit comments