Commit 6499be9
feat: Enable dual publishing to both scoped and unscoped NPM packages (#218)
Syncs both packages so users can install either way:
- npm install @ibrahimcesar/react-lite-youtube-embed (scoped)
- npm install react-lite-youtube-embed (unscoped)
Changes:
1. Split "Publish to NPM" into two steps:
- First publishes scoped package: @ibrahimcesar/react-lite-youtube-embed
- Then modifies package.json and publishes unscoped: react-lite-youtube-embed
- Restores original package.json after publishing
2. Updated release summary to show both packages:
- Lists both NPM package URLs
- Clearly identifies scoped vs unscoped
- Shows package names for copy/paste
3. Applied to both workflows:
- auto-release.yml (manual releases)
- release.yml (GitHub release triggers)
Benefits:
- Both packages stay in sync automatically
- Users can use whichever package name they prefer
- Backward compatibility with existing installations
- Same code, same version, published to both names
All 51 tests passing ✅
Co-authored-by: Claude <noreply@anthropic.com>1 parent 79b5762 commit 6499be9
2 files changed
+61
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
| 243 | + | |
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
| 249 | + | |
| 250 | + | |
250 | 251 | | |
251 | 252 | | |
252 | 253 | | |
| |||
255 | 256 | | |
256 | 257 | | |
257 | 258 | | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
258 | 284 | | |
259 | 285 | | |
260 | 286 | | |
| |||
300 | 326 | | |
301 | 327 | | |
302 | 328 | | |
| 329 | + | |
| 330 | + | |
303 | 331 | | |
304 | | - | |
| 332 | + | |
| 333 | + | |
305 | 334 | | |
306 | | - | |
| 335 | + | |
| 336 | + | |
307 | 337 | | |
308 | | - | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
309 | 341 | | |
310 | 342 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
| 93 | + | |
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
97 | 119 | | |
98 | 120 | | |
99 | 121 | | |
| |||
0 commit comments