Skip to content

chore: add GitHub Actions CI and release workflows#13

Merged
V3RON merged 1 commit into
masterfrom
chore/github-actions-ci-release
Jun 22, 2026
Merged

chore: add GitHub Actions CI and release workflows#13
V3RON merged 1 commit into
masterfrom
chore/github-actions-ci-release

Conversation

@V3RON

@V3RON V3RON commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

What is this?

This PR adds GitHub Actions automation for Sniffler so every pull request and master push gets the same basic quality gates, and releases can be published to npm from a controlled workflow. Before this, the repo had no checked-in GitHub workflows for test, typecheck, lint, or release publishing.

How does it work?

The CI workflow runs three separate jobs for tests, TypeScript checks, and linting. Each job checks out the repository with read-only credentials, installs pnpm directly, installs dependencies from pnpm-lock.yaml, and runs the matching project command.

The release workflow runs only for v* tags. It verifies that the tag matches the package version and points to a commit reachable from origin/master, then performs a fresh no-cache install, runs the same validation steps, rebuilds the package, inspects the npm package contents, and publishes with npm Trusted Publishing through OIDC. The workflow does not use dependency caches, build artifacts from CI, or long-lived npm publish tokens.

Why is this useful?

This gives maintainers consistent pre-merge signal for tests, type checking, and linting while keeping release publishing deliberately stricter than everyday CI. The release path builds from source in a clean job, uses least-privilege GitHub permissions, pins external actions by commit, and relies on short-lived OIDC credentials, which reduces the risk from cache poisoning, leaked npm tokens, or mutable release infrastructure.

Add separate CI jobs for tests, type checks, and linting, plus a cache-free npm Trusted Publishing release workflow.
@V3RON V3RON merged commit f408362 into master Jun 22, 2026
3 checks passed
@V3RON V3RON deleted the chore/github-actions-ci-release branch June 22, 2026 20:07
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