-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add documentation for publishing packages (#146)
* docs: add documentation for publishing * docs: fix indentation * Update PUBLISH.md * Update PUBLISH.md * Update PUBLISH.md * Update PUBLISH.md
- Loading branch information
Showing
2 changed files
with
62 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# How to publish packages | ||
|
||
1. Enter the master branch and check that pipelines are green | ||
|
||
```bash | ||
git checkout master | ||
``` | ||
|
||
2. reset your current master branch to the latest state by | ||
|
||
```bash | ||
git fetch | ||
git reset origin/master --hard | ||
``` | ||
|
||
3. Checkout a new branch that we'll release versions from | ||
|
||
```bash | ||
git checkout -b release-new-version-[a-b-c] | ||
``` | ||
|
||
4. Start the publishing procedure (\*\*) | ||
1. Check the current version using `npm version` | ||
2. Update the version you would to like to publish `npm version [version] # version -> major, minor, patch ... version` | ||
3. Push the branch `git push` | ||
|
||
|
||
5. Publish the package. | ||
|
||
```bash | ||
npm publish | ||
``` | ||
|
||
6. Open a PR of your release branch and get an approval to finally merge the release it into master | ||
|
||
```bash | ||
git checkout master && git reset origin/master --hard | ||
git merge origin/release-new-version-[a-b-c] --ff-only | ||
git push origin master | ||
``` | ||
|
||
7. Create a release note (Use template from older release tags https://github.com/signavio/i18n/releases) | ||
|
||
1. Add summary: Describe the changes/packages of this release | ||
2. Add the release tag created in the previous steps: (v1.2.0) | ||
3. Add title: #<release-number> release of i18n packages | ||
|
||
8. Great Job! You've done it. 🎉 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters