Skip to content

Publish the way nago-wss does - #30

Merged
pathscale merged 4 commits into
masterfrom
ci/auto-version-bump
Sep 24, 2026
Merged

pathscale merged 4 commits into
masterfrom
ci/auto-version-bump

Conversation

@pathscale

@pathscale pathscale commented Sep 24, 2026 •

Copy link
Copy Markdown
Owner

Replaces the publish.yml from #29 with nago-wss's, for both crates: cargo read-manifest for the version and cargo info --registry crates-io for whether it's released, instead of a curl query against the crates.io API. endpoint-gen-macros goes first, since endpoint-gen depends on it by version. It runs on a change to either Cargo.toml, and on workflow_dispatch.

The house scheme is unchanged: bump the version in the PR and the merge publishes; a merge without a bump publishes nothing.

The auto-bump workflow that was first on this PR is gone. No other repo has one, so it was invented.

Checked locally: both manifests read, and cargo info reports endpoint-gen 1.14.0 and endpoint-gen-macros 1.3.4 as already on crates.io.

cargo read-manifest for the version and cargo info for whether crates.io has
it, instead of a hand-rolled crates.io API query. Same house scheme: bumping
the version in a PR is the release; a merge without a bump publishes nothing.
@pathscale pathscale changed the title Bump the version on a PR that forgot to Publish the way nago-wss does Sep 24, 2026
meh added 3 commits September 24, 2026 12:26
The audit reads Cargo.lock, which is no longer tracked, so it failed on
master since that change.
It spent three minutes installing cargo-audit on every push and PR. Tests,
clippy and fmt stay automatic.
@pathscale
pathscale merged commit fc78765 into master Sep 24, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant