File tree Expand file tree Collapse file tree 2 files changed +65
-0
lines changed
Expand file tree Collapse file tree 2 files changed +65
-0
lines changed Original file line number Diff line number Diff line change 11coverage
22test
3+ report
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments