Thank you for your interest in contributing!
-
Fork the repository on GitHub.
-
Clone your fork locally.
-
Install dependencies:
pnpm install
- Start dev server:
pnpm dev - Run tests:
pnpm test - Lint code:
pnpm lint - Format code:
pnpm format
We use Changesets for versioning. If your change affects a published package, please add a changeset:
pnpm changesetFollow the prompts to select packages and bump types (major/minor/patch).
- Ensure all tests pass.
- Ensure linting passes.
- Add a changeset (see above) if your change affects a published package.
- Open a Pull Request against the
masterbranch.
This project uses Changesets + GitHub Actions for automated versioning and publishing. The full flow is as follows:
When your change affects a published package (e.g. @vgerbot/async), add a changeset before opening a PR:
pnpm changesetThis creates a file under .changeset/ describing the change and the desired version bump (patch / minor / major). The CI Changeset Check job will fail if no changeset is found.
Every PR to master triggers the CI workflow, which runs:
- Test & Lint — type-check, lint, unit tests, and build (Node 22 & 24)
- Build Matrix — cross-platform build verification (Ubuntu / Windows / macOS, Node 20)
- Changeset Check — verifies a changeset exists
- Security Audit —
pnpm auditfor known vulnerabilities
All jobs must pass before the PR can be merged.
When a PR is merged to master, the Release workflow runs changesets/action. If there are pending changesets, it automatically:
- Consumes the changeset files
- Bumps package versions accordingly
- Updates
CHANGELOG.md - Opens a "Version Packages" PR with title
ci(changesets): version packages
Merge the "Version Packages" PR to trigger the Release workflow again. This time, with no pending changesets, changesets/action will:
- Run
pnpm changeset:publish - Publish the new version(s) to npm
Prerequisite: The
NPM_TOKENsecret must be configured in the GitHub repository settings (Settings → Secrets and variables → Actions).
Pushing to master or a v* tag triggers the Deploy Docs workflow, which builds the API reference (TypeDoc) and the documentation site (Astro), then deploys them to GitHub Pages.
Developer
│
├─ pnpm changeset → .changeset/*.md
│
├─ Open PR to master
│ │
│ └─ CI: test / lint / build / changeset-check / security
│
├─ Merge PR
│ │
│ └─ Release workflow
│ │
│ ├─ Has pending changesets? → Open "Version Packages" PR
│ │
│ └─ No pending changesets? → pnpm changeset:publish → npm
│
└─ Merge "Version Packages" PR
│
└─ Release workflow → publish to npm
│
└─ Deploy Docs workflow → GitHub Pages
If automated publishing fails, you can publish locally:
pnpm changeset:version # bump versions + update changelogs
pnpm build # build dist
pnpm changeset:publish # publish to npm (requires npm login)