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
These instructions describe how to create a new release of PatternFly Elements.
15
+
They are intended for core maintainers who have admin rights to the
16
+
[@patternfly][pforg] org on npm.
13
17
14
-
We've been publishing our PatternFly Elements to the [@patternfly organization](https://www.npmjs.com/org/patternfly) on npm.
18
+
To tag and publish a new release, run:
19
+
20
+
```
21
+
npm run release
22
+
```
23
+
24
+
Here's a summary of what to expect the release script to do:
25
+
26
+
- ask you a question about what version bump type to perform (major, minor, etc)
27
+
- do a fresh npm install
28
+
- do a build
29
+
- create a new branch (ex: `release/v1.0.0`)
30
+
- create a new tag (ex: `v1.0.0`)
31
+
- publish all elements npm (you will be prompted `Y/n` before this happens)
32
+
- create a pull request for the reelase branch
33
+
- the PR will be created automatically if you have [hub][hub] installed, otherwise a link to create the PR will be printed in the terminal
34
+
- the purpose of the pull request is to bring the new version numbers back into `master`
35
+
36
+
### Version bumps & prereleases
37
+
38
+
The types of version bumps are more-or-less straightforward. The least intuitive one is if you want to bump a prerelease version, for example from `1.0.0-prerelease.2` to `1.0.0-prerelease.3`. In that case only, choose *Custom Prerelease*.
39
+
40
+
## (Legacy) The Hard Way
41
+
42
+
Before the release script (above) was created, we published releases using the manual steps below. They're kept here mostly for posterity, and possibly to make the [release script](https://github.com/patternfly/patternfly-elements/blob/master/scripts/release.sh) more understandable.
43
+
44
+
To roll a new release, use the following steps:
45
+
46
+
1. Start in the root directory of the patternfly-elements project.
47
+
2. Check out the master branch and pull down the latest:
0 commit comments