Commit 80eb21e
Modernize release process for monorepo (#1856)
* Modernize release process for monorepo
- Replace release-it with native Yarn workspace publish commands
- Update release rake task to handle both NPM packages (react-on-rails and react-on-rails-pro)
- Synchronize versions across gem and both NPM packages
- Set react-on-rails-pro to use exact version dependency on react-on-rails
- Remove obsolete release scripts from package.json files
- Delete packages/react-on-rails/scripts/release
- Update documentation with comprehensive release instructions
The new release process:
1. Bumps version in lib/react_on_rails/version.rb (source of truth)
2. Updates all 3 package.json files with new version
3. Updates react-on-rails-pro dependency to exact version
4. Commits, tags, and pushes changes
5. Publishes both NPM packages using yarn workspace publish
6. Publishes Ruby gem
Benefits:
- No external release-it dependency
- Both NPM packages properly released
- Version sync enforced across all 5 files
- Single command releases everything: rake release[X.Y.Z]
🤖 Generated with Claude Code
Co-Authored-By: Claude <[email protected]>
* Fix syntax error and RuboCop violations in release.rake
- Remove extra end statement that was causing syntax error
- Fix string concatenation to use interpolation
- Fix operator precedence ambiguity
- Convert multi-line unless blocks to modifier form
- Refactor unless/else to if/else for clarity
- Fix line length violation
- Eliminate duplicate separator line code
All RuboCop violations resolved. File now passes bundle exec rubocop with zero offenses.
* Add skip_push option to release task
- Add 4th argument 'skip_push' to skip git push operations
- Useful for testing the release process locally
- Commits and tags are still created, but not pushed to remote
- Displays warning message when push is skipped
- Update documentation with new parameter and example usage
Example: rake release[16.2.0,false,npm,skip_push]
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
* Add parameter validation for registry and skip_push
- Validate registry parameter accepts only: 'verdaccio', 'npm', or empty string
- Validate skip_push parameter accepts only: 'skip_push' or empty string
- Raise ArgumentError with clear message for invalid values
- Prevents silent failures from typos or incorrect usage
Examples of errors:
rake release[16.2.0,false,foo] → ArgumentError: Invalid registry value 'foo'
rake release[16.2.0,false,npm,skip] → ArgumentError: Invalid skip_push value 'skip'
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
* run bundle on the gem root while releasing
* update dependency version of rorp package to 16.1.2
* Revert "update dependency version of rorp package to 16.1.2"
This reverts commit 324fb8c.
* update dependency version of rorp package to 16.1.1
---------
Co-authored-by: Claude <[email protected]>1 parent 486ab53 commit 80eb21e
File tree
6 files changed
+340
-107
lines changed- docs/contributor-info
- packages
- react-on-rails-pro
- react-on-rails
- scripts
- rakelib
6 files changed
+340
-107
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | | - | |
17 | | - | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 19 | + | |
23 | 20 | | |
24 | | - | |
25 | | - | |
| 21 | + | |
| 22 | + | |
26 | 23 | | |
27 | | - | |
28 | | - | |
| 24 | + | |
29 | 25 | | |
30 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
31 | 30 | | |
32 | 31 | | |
33 | | - | |
| 32 | + | |
34 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
35 | 116 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | 117 | | |
40 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
41 | 163 | | |
42 | 164 | | |
43 | | - | |
| 165 | + | |
44 | 166 | | |
45 | 167 | | |
46 | 168 | | |
47 | 169 | | |
48 | | - | |
49 | | - | |
| 170 | + | |
| 171 | + | |
50 | 172 | | |
| 173 | + | |
51 | 174 | | |
52 | | - | |
| 175 | + | |
53 | 176 | | |
54 | 177 | | |
55 | 178 | | |
56 | 179 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
77 | 185 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | 73 | | |
77 | 74 | | |
78 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 17 | + | |
21 | 18 | | |
22 | 19 | | |
23 | 20 | | |
| |||
This file was deleted.
0 commit comments