Skip to content

Commit 7d14e60

Browse files
authored
chore: add release-latest script (appium#15316)
* chore: add release-latest * add sh
1 parent cc2271f commit 7d14e60

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

docs/en/contributing-to-appium/release-appium.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ Appium follows the GitLab flow approach. Releases are made on release branches t
1515

1616
## Publish to GA
1717
1. Checkout the release branch (e.g.: `git checkout releases/1.21 && git pull origin releases/1.21`)
18-
1. `bash ./scripts/release.sh latest`
18+
1. `bash ./scripts/release-latest.sh 1.21.0`
19+
- The `1.21.0` must be proper version name
1920
1. Update the site docs by going to https://github.com/appium/appium.io/pulls and merging the latest pull request that was opened by the Triager bot. Close any other pull requests opened by Triager bot.
2021
1. Create a new release on GitHub: go to `https://github.com/appium/appium/releases/tag/v<VERSION>` and hit "Edit Tag". Make the release name `<VERSION>` (e.g., `2.0.5`), then paste in the changelog (but not the changelog header for this version). If it's a beta release, mark as pre-release.
22+
- Please check _Create a discussion for this release_ and select _Release_ category
2123
1. Create a new post on discuss.appium.io announcing the release. Post it in the "News" category. Paste in the changelog and any choice comments. Pin it and unpin the previous release post.
2224
1. Begin process of releasing `appium-desktop`.
2325
1. Notify @jlipps to so he can tweet a link to the discuss post.

scripts/release-latest.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#! /bin/sh
2+
3+
npm version $1
4+
git push
5+
git push --tags
6+
npm publish --tag latest

scripts/release.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#! /bin/sh
2+
13
npm version prerelease --preid=$1
24
git push
35
git push --tags

0 commit comments

Comments
 (0)