Commit d144cd4
authored
fix(ci): install @changesets/cli as workspace devDep (#11)
* fix(ci): install @changesets/cli as workspace devDep
The release workflow's `changesets/action@v1` step resolves
`@changesets/cli` from the workspace's node_modules before doing
anything, so a global install via `npm install -g` lets the binary
land on PATH but doesn't satisfy the action's preflight resolve.
Symptom: every merge that *adds* a changeset (vs the follow-up
Version Packages PR, which has no pending changesets and skips the
action's open-version-PR branch) fails the Release job with:
Error: Have you forgotten to install `@changesets/cli` in
"/home/runner/work/managed-auth-react/managed-auth-react"?
Fix: add `@changesets/cli` to the root devDependencies so it
resolves from the workspace. Bun does create `node_modules/.bin/changeset`
when it's a workspace dep, so the earlier "bun skips the .bin shim"
workaround is no longer needed and the global-install step is dropped.
* fix(ci): use bunx for changeset publish
The publish input to changesets/action is passed to
@actions/exec.getExecOutput, which does a PATH-based lookup — it does
not search the workspace's node_modules/.bin. With the global install
gone, `changeset publish` would no longer resolve. `bunx` explicitly
resolves to the workspace devDep (verified: returns 2.31.0).1 parent e42a234 commit d144cd4
3 files changed
Lines changed: 208 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | 67 | | |
76 | 68 | | |
77 | 69 | | |
| |||
83 | 75 | | |
84 | 76 | | |
85 | 77 | | |
86 | | - | |
| 78 | + | |
87 | 79 | | |
88 | 80 | | |
89 | 81 | | |
| |||
0 commit comments