Install pre-commit and enable the repository hooks to run typechecking, tests, and formatting checks before each commit:
pre-commit installRun the same checks manually with either:
pre-commit run --all-files
npm run precommitFor any code change, validate the repo before submitting by running:
npm run format
npm test
npm run typecheckThis extension is a diff review tool, not a general pager or editor. New features should be justified in terms of review, comments, or diff navigation.
Releases are published by pushing a version tag that matches package.json.
Configure npm Trusted Publishing for this package instead of using a long-lived token:
- Open the package on npm.
- Go to package settings / publishing access.
- Add a trusted publisher for GitHub Actions.
- Use this repository and workflow:
- Repository:
cmpadden/pi-diff-review - Workflow:
release.yml
- Repository:
No NPM_TOKEN repository secret is required.
From a clean working tree on the release branch:
npm version patch # or minor/major
git push --follow-tagsThe GitHub Actions release workflow will:
- Validate that the pushed
v*.*.*tag matchespackage.json. - Install dependencies.
- Check formatting with Prettier.
- Pack the npm package.
- Publish the package to npm with provenance.
- Create a GitHub Release for the tag with the packed tarball attached.