Very basic template for a Node.js library.
Uses
tsdownfor buildingvitestfor testingchangesetsfor version management and automated publishingbiomefor linting and formatting
pnpm installpnpm testpnpm benchpnpm buildThis project uses changesets for version management and automated publishing.
- Make your code changes
- Run
pnpm changesetto create a changeset file - Select the type of change (patch/minor/major)
- Write a description of the changes
- Commit both your code changes and the changeset file
When changes are merged to main:
- The Release workflow creates a PR with version bumps and CHANGELOG updates
- Review and merge the Release PR
- The workflow automatically publishes to npm
To publish manually:
pnpm version
pnpm releaseFor automated publishing, add the NPM_TOKEN secret to GitHub repository settings.