Skip to content

ci: add pull-request checks and a tag-driven release pipeline - #27

Open
aleffita wants to merge 2 commits into
Yan-Zero:mainfrom
aleffita:ci/release-pipeline
Open

ci: add pull-request checks and a tag-driven release pipeline#27
aleffita wants to merge 2 commits into
Yan-Zero:mainfrom
aleffita:ci/release-pipeline

Conversation

@aleffita

Copy link
Copy Markdown

publish.yml owns the npm release but only runs on tags and only in this repository, so pull requests get no checks at all and a fork cannot hand out an installable build.

Two additions, both independent of the npm release:

  • ci.ymlpnpm run check (host + client typecheck, vitest, tsdown build) on every pull request and on main.
  • release.yml — packs the installable tarball for a v* tag or for a manually requested version (workflow_dispatch), keeps it as a workflow artifact, and attaches it to a GitHub release, marked pre-release when the version carries a suffix. The npm release stays owned by publish.yml; this workflow only builds the artifact, so a fork can produce and hand out release candidates without publishing to any registry.

Both pin the same pnpm and Node versions as publish.yml. Happy to keep only ci.yml if you would rather own the release side.

`publish.yml` owns the npm release but only runs on tags and only in the
upstream repository, so pull requests get no checks and a fork cannot hand out
an installable build.

- `ci.yml` runs `pnpm run check` on every pull request and on `main`.
- `release.yml` packs the tarball for a tag or a manually requested version
  (`workflow_dispatch`), keeps it as a workflow artifact, and attaches it to a
  GitHub release, marked pre-release when the version carries a suffix. The
  npm release stays owned by `publish.yml`; this workflow only builds the
  artifact, so a fork can produce release candidates without publishing
  anything to a registry.
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