Conversation
CI runs typecheck, build, and tests on pull requests and on pushes to main. Publish runs when a GitHub release is published: it sets the package version from the release tag (stripping a leading v), runs the checks, and publishes to npm with provenance. Prereleases go to the "next" dist-tag so they never become npm's "latest". Actions are pinned to commit SHAs. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
npm version errors on a no-op change, which would fail the very first release: package.json is already at 0.4.0. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds GitHub Actions for CI and npm publishing.
CI (
ci.yml)Runs on pull requests and on pushes to
main:npm run typecheck—tscunder the project's strict config (the repo has no separate linter; this is the lint gate)npm run build— tsdownnpm test— 138 tests via the Node test runnerUses Node 24, which satisfies tsdown's engine requirement (
^22.18.0 || >=24.11.0).Publish (
publish.yml)Runs when a GitHub release is published:
v(so a release taggedv0.5.0publishes0.5.0)npm publish --provenance(theprepublishOnlyhook runs the build)Details:
publish.yml(see below).nextdist-tag instead oflatest.Setup required (one-time, on npmjs.com)
On the
determinedpackage: Settings → Trusted Publisher → GitHub Actions, with organizationglideapps, repositorydetermined, workflow filenamepublish.yml, environment left empty.🤖 Generated with Claude Code