-
Notifications
You must be signed in to change notification settings - Fork 7
prepare for v1 release #160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| { | ||
| "mode": "pre", | ||
| "mode": "exit", | ||
| "tag": "beta", | ||
| "initialVersions": { | ||
| "@hypercerts-org/lexicon": "0.9.0" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,14 +22,14 @@ are made. | |
| │ │ | ||
| │ feature/* ──────────────────┐ │ | ||
| │ │ │ │ | ||
| │ │ npm run changeset │ PR │ | ||
| │ │ npx changeset │ PR │ | ||
| │ │ (describe changes) │ │ | ||
| │ ▼ ▼ │ | ||
| │ ┌─────────┐ merge ┌──────────┐ │ | ||
| │ │ commit │ ────────► │ develop │ ──► Manual publish @beta │ | ||
| │ │ + .md │ └────┬─────┘ (0.9.0-beta.1) │ | ||
| │ └─────────┘ │ │ | ||
| │ │ PR (after: npm changeset pre exit) │ | ||
| │ │ PR (after: npx changeset pre exit) │ | ||
| │ ▼ │ | ||
| │ ┌────────┐ │ | ||
| │ │ main │ ──► Creates "Release PR" │ | ||
|
|
@@ -73,7 +73,7 @@ Before publishing, you need to create changesets for any user-facing | |
| changes: | ||
|
|
||
| ```bash | ||
| npm run changeset | ||
| npx changeset | ||
| ``` | ||
|
Comment on lines
75
to
77
|
||
|
|
||
| This will: | ||
|
|
@@ -95,7 +95,7 @@ but it's not necessary. | |
|
|
||
| ```bash | ||
| # On develop branch | ||
| npm run changeset pre exit | ||
| npx changeset pre exit | ||
| git add .changeset/pre.json | ||
|
Comment on lines
96
to
99
|
||
| git commit -m "chore: exit prerelease mode" | ||
| git push | ||
|
|
@@ -108,7 +108,7 @@ This sets the exit intent in `pre.json`, which is required before merging to `ma | |
| To publish a stable release to npm: | ||
|
|
||
| 1. **If merging from `develop` → `main`:** | ||
| - Run `npm run changeset pre exit` on `develop` branch | ||
| - Run `npx changeset pre exit` on `develop` branch | ||
| - Commit and push the change | ||
| - Merge `develop` → `main` (the PR check will verify exit intent) | ||
|
|
||
|
|
@@ -174,7 +174,7 @@ Versions are determined by Changesets: | |
| - **Major**: Breaking changes (0.9.0 → 1.0.0) | ||
|
|
||
| You specify the version bump type when creating a changeset with | ||
| `npm run changeset`. | ||
| `npx changeset`. | ||
|
|
||
| The `prepublishOnly` script ensures types are regenerated before | ||
| publishing, so the published package always includes the latest | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.changeset/pre.jsonis set to{ "mode": "exit" }, but the PR-check/release workflows currently verify exit intent by grepping for"exit": true. With this file shape, merges tomainwill fail the check even though prerelease mode is exited. Update the workflow logic to check for"mode": "exit"(or adjustpre.jsonto the exact format the workflows expect) so CI and Changesets agree on the exit signal.