Commit eb48d1f
authored
chore: add changeset for 0.1.1 (SSR fix + README refresh) (#18)
* chore: add changeset for 0.1.1 (SSR fix + README refresh)
Queues the next version bump. Once this lands on main, the changesets
GitHub Action will open a "chore: version packages" PR that bumps
@kripa006/404-ui 0.1.0 -> 0.1.1 and updates the changelog. Merging
that auto-PR triggers Release on push, which runs `changeset publish`
and uploads 0.1.1 to npm.
The headline change is the SSR fix from PR #10 — vanilla entries no
longer throw `HTMLElement is not defined` under Node. The README
refresh ensures npmjs.com displays the up-to-date gallery + snippets
on the 0.1.1 version page (the 0.1.0 publish stored `readme: null`
so npmjs is currently falling back to a much older 0.0.0 readme).
Per the original ship plan, this is a patch bump (bug fix + docs).
The framework example apps that were originally bundled with PR #4
were deferred to a follow-up, so no minor bump is warranted yet.
* ci: ensure local base branch exists before running changeset status
PR Validation's `release-check` job was failing on the first PR that
actually contains a changeset (#18) with:
🦋 Error: Failed to find where HEAD diverged from "main".
Does "main" exist and it's synced with remote?
Root cause: actions/checkout@v4 with `fetch-depth: 0` fetches every
commit but only sets up a remote-tracking ref (`origin/main`). The
local `main` branch never gets created. `pnpm changeset status` reads
`baseBranch: "main"` from `.changeset/config.json` and runs
`git merge-base HEAD main`, which fails because `main` doesn't exist
locally.
Adding a small step that creates the local base ref from the remote-
tracking one before any changeset commands run. Uses
`${{ github.base_ref }}` so it works on any base branch (not just
main).
Also de-duplicates the `git fetch` previously inlined in the
"Check for changeset files" step — the new step covers it.
Latent for previous PRs because none had a changeset to validate.
PR #18 is the first to surface it; this fix unblocks the entire
release flow.1 parent dc7afa5 commit eb48d1f
2 files changed
Lines changed: 37 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
184 | 198 | | |
185 | 199 | | |
186 | 200 | | |
187 | | - | |
188 | | - | |
189 | | - | |
| 201 | + | |
| 202 | + | |
190 | 203 | | |
191 | 204 | | |
192 | 205 | | |
| |||
0 commit comments