Commit a2852cc
authored
fix: resolve npm --no-workspaces and --workspace conflict in bump-version CI (#37)
Run npm install --package-lock-only in a temp directory outside the
monorepo so npm cannot detect workspace membership or traverse the root
.npmrc (workspaces=false). This avoids the conflict between the implicit
--no-workspaces flag set by root .npmrc and the --workspace flag that
npm v9/v10 auto-sets when the CWD is inside a workspace member directory.
Copies the existing package-lock.json into the temp dir first so npm
makes incremental changes rather than regenerating from scratch.1 parent 8979b3e commit a2852cc
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
81 | 88 | | |
82 | 89 | | |
83 | 90 | | |
| |||
0 commit comments