Skip to content

Commit f408bbe

Browse files
committed
prepare for 5.2.0 release
1 parent 84edbd9 commit f408bbe

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
coverage
22
test
3+
report

RELEASE.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Publishing a new version of patternfly-a11y to npm
2+
3+
**1. Create a new branch for the version bump:**
4+
```bash
5+
git checkout -b release-X.Y.Z
6+
```
7+
(Replace X.Y.Z with the version you want to publish)
8+
9+
**2. Update the version:**
10+
```bash
11+
yarn version X.Y.Z
12+
```
13+
14+
**3. Push the branch:**
15+
```bash
16+
git push -u origin release-X.Y.Z
17+
```
18+
19+
**4. Create a PR to merge into master**
20+
21+
**5. After the PR is merged, checkout master and pull:**
22+
```bash
23+
git checkout master
24+
git pull
25+
```
26+
27+
**6. Verify the version in package.json:**
28+
```bash
29+
grep '"version"' package.json
30+
```
31+
Should show `"version": "X.Y.Z"`
32+
33+
**7. See what files will be included (dry-run):**
34+
```bash
35+
yarn pack --dry-run
36+
```
37+
Check that:
38+
- `cli.js` is included ✓
39+
- `lib/` directory is included ✓
40+
- `README.md` is included ✓
41+
- `coverage/`, `report/`, and `test/` are excluded ✓
42+
43+
**8. Dry-run the publish:**
44+
```bash
45+
npm publish --dry-run
46+
```
47+
Verify the package name, version, and file list look correct.
48+
49+
**9. Create and push the git tag:**
50+
```bash
51+
git tag vX.Y.Z
52+
git push --tags
53+
```
54+
55+
**10. Publish to npm:**
56+
```bash
57+
npm publish
58+
```
59+
60+
**11. Verify the publish succeeded:**
61+
```bash
62+
npm view @patternfly/patternfly-a11y
63+
```
64+
Also check https://www.npmjs.com/package/@patternfly/patternfly-a11y

0 commit comments

Comments
 (0)