Skip to content
This repository was archived by the owner on Jan 31, 2024. It is now read-only.

Commit dce8409

Browse files
committed
setup auto prereleases
1 parent 9304a9f commit dce8409

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

CONTRIBUTING.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
## Branch structure
2+
3+
- **next** - the `next` version on npm, and the development branch where most work occurs
4+
- **prerelease** - the `prerelease` version on npm, where eventual changes to `main` get tested
5+
- **main** - the `latest` version on npm and the stable version that most users use
6+
7+
## Release process
8+
9+
1. All PRs should target the `next` branch, which depends on the `next` version of Storybook.
10+
2. When merged, a new version of this package will be released on the `next` NPM tag.
11+
3. If the change contains a bugfix that needs to be patched back to the stable version, please note that in PR description.
12+
4. PRs labeled `pick` will get cherry-picked back to the `prerelease` branch and will generate a release on the `prerelease` npm tag.
13+
5. Once validated, `prerelease` PRs will get merged back to the `main` branch, which will generate a release on the `latest` npm tag.

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,16 @@
8989
"access": "public"
9090
},
9191
"auto": {
92+
"prereleaseBranches": [
93+
"next",
94+
"prerelease"
95+
],
9296
"plugins": [
9397
"npm",
9498
"conventional-commits",
9599
"first-time-contributor",
96100
"released"
97-
],
98-
"onlyPublishWithReleaseLabel": true
101+
]
99102
},
100103
"dependencies": {
101104
"@storybook/csf": "next"

0 commit comments

Comments
 (0)