Skip to content

Commit

Permalink
docs: add package versioning section to readme (#19)
Browse files Browse the repository at this point in the history
* docs: add package versioning section to readme

* Create lovely-plums-deliver.md
  • Loading branch information
kotarella1110 committed Aug 8, 2023
1 parent fe7434a commit 3634dca
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/lovely-plums-deliver.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"pr-voyager": patch
---

docs: add package versioning section to readme
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ PR Voyager is an automated workflow powered by GitHub Actions that streamlines t
- Simplifies local testing by providing clear instructions for installing and using the updated packages.
- Enhances collaboration by enabling team members to easily test and review PR changes using the latest package versions.

## Package Versioning

For each PR, the package version in your `package.json` is automatically updated in the following format: `1.0.0-pr123.366b952`, where:

- `1.0.0` represents the current version.
- `123` is the PR number.
- `366b952` is the first 7 characters of the commit SHA.

The package is also published with a tag named `pr123`, where `123` is the PR number.

This versioning and tagging scheme ensures that each PR receives a unique package version and allows for easy identification and testing of changes.

## Usage

### Inputs
Expand Down

0 comments on commit 3634dca

Please sign in to comment.