Commit 92aab8c
fix: resolve semantic-release and publish auth issues in build workflow (#20)
* fix: resolve build errors by ensuring repterm-api is built before dependent packages
- Add repterm-api build step before repterm and plugin-kubectl builds in release jobs
- This ensures the dist/ directory exists before downstream packages try to import repterm-api
- Fix npm auth configuration in release jobs to properly expand NPM_TOKEN environment variable
- Simplify .npmrc configuration using echo instead of heredoc for consistent variable expansion
Fixes the "Cannot find module 'repterm-api'" errors in build workflow.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
* fix: resolve workspace protocol incompatibility with npm in semantic-release
The semantic-release action uses npm (not bun) to run `npm version`, which
cannot parse bun's `workspace:*` protocol in package.json dependencies.
This adds a step to replace `workspace:*` with the actual semver range
(e.g. `^0.1.0`) before semantic-release runs.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: write .npmrc to project root for bun publish authentication
bun publish may not reliably read ~/.npmrc for authentication. Writing
the .npmrc to the project root directory ensures bun can find it during
publish steps.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>1 parent f43a40e commit 92aab8c
1 file changed
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
115 | 120 | | |
116 | 121 | | |
117 | 122 | | |
| |||
227 | 232 | | |
228 | 233 | | |
229 | 234 | | |
230 | | - | |
| 235 | + | |
231 | 236 | | |
232 | 237 | | |
233 | 238 | | |
| |||
239 | 244 | | |
240 | 245 | | |
241 | 246 | | |
242 | | - | |
243 | | - | |
244 | 247 | | |
245 | 248 | | |
246 | 249 | | |
| |||
260 | 263 | | |
261 | 264 | | |
262 | 265 | | |
263 | | - | |
| 266 | + | |
264 | 267 | | |
265 | 268 | | |
266 | 269 | | |
| |||
269 | 272 | | |
270 | 273 | | |
271 | 274 | | |
272 | | - | |
273 | | - | |
| |||
0 commit comments