-
Notifications
You must be signed in to change notification settings - Fork 9
Adopt changesets for versioning and a consolidated release workflow #650
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
Open
drewda
wants to merge
5
commits into
main
Choose a base branch
from
changesets-release-tooling
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
65d7097
Add changesets-based versioning and consolidated release workflow
drewda 0786f3b
Add build provenance, checksums, trimpath, and v2 release docs
drewda 53a9562
Address Copilot review: serialize releases, precise tag check, sync s…
drewda fbdc390
Update README for changesets release flow
drewda 305d42c
Link homebrew tap, note go generate prereq, drop em dashes
drewda File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| # Changesets | ||
|
|
||
| This directory holds [changesets](https://github.com/changesets/changesets): one | ||
| markdown file per set of changes, declaring how they bump the version and a | ||
| human-readable summary that becomes the `CHANGELOG.md` entry. | ||
|
|
||
| `transitland-lib` is a Go project; changesets is used only to track changes and | ||
| drive versioning/releases. Versions stay continuous with the existing `vX.Y.Z` | ||
| git tags (changesets uses the `v`-prefixed format for single-package repos). | ||
|
|
||
| ## Adding a changeset (in your feature PR) | ||
|
|
||
| ```bash | ||
| pnpm changeset | ||
| ``` | ||
|
|
||
| Pick the bump level (patch / minor / major) and write a short summary. Commit | ||
| the generated `.changeset/<name>.md` file with your PR. | ||
|
|
||
| ## What happens next (automated in CI) | ||
|
|
||
| 1. When your PR merges to `main`, a bot opens/updates a **"Version Packages"** PR | ||
| that consumes pending changesets, bumps `package.json`, and writes | ||
| `CHANGELOG.md`. | ||
| 2. Merging that PR creates the `vX.Y.Z` git tag and GitHub Release, which builds | ||
| and ships the binaries. | ||
|
|
||
| You do not run `changeset version` or `changeset tag` by hand; CI does. | ||
|
|
||
| See [`RELEASING.md`](../RELEASING.md) for the full flow and the dependency | ||
| hardening policy. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| { | ||
| "$schema": "https://unpkg.com/@changesets/config@3.1.4/schema.json", | ||
| "changelog": ["@changesets/changelog-github", { "repo": "interline-io/transitland-lib" }], | ||
| "commit": false, | ||
| "fixed": [], | ||
| "linked": [], | ||
| "access": "restricted", | ||
| "baseBranch": "main", | ||
| "updateInternalDependencies": "patch", | ||
| "ignore": [] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "transitland-lib": patch | ||
| --- | ||
|
|
||
| Adopt changesets for versioning and a consolidated, automated release workflow (continuous with the existing vX.Y.Z tags). Hardened with SHA-pinned actions, a committed pnpm lockfile, an install cooldown, and no dependency lifecycle scripts. Releases now publish SLSA build provenance and a SHA256SUMS checksum file, and binaries are built with -trimpath. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,4 +20,7 @@ tldb/test.db | |
| **/.DS_Store | ||
| tmp | ||
| **/tmp | ||
| transitland | ||
| transitland | ||
|
|
||
| # Node / changesets release tooling | ||
| node_modules/ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| # Defense in depth: never execute dependency lifecycle scripts on install. | ||
| ignore-scripts=true |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.