1
0
Fork 0
mirror of https://github.com/imjasonh/apidiff-action synced 2026-07-06 22:52:43 +00:00
apidiff-action/CONTRIBUTING.md

44 lines
813 B
Markdown
Raw Permalink Normal View History

# Contributing
## Building the Action
Before committing changes that affect the action code, you must rebuild the dist folder:
```bash
npm run build
```
This compiles all dependencies into `dist/index.js` which is what GitHub Actions actually runs.
**Important**: The dist folder must be committed to the repository for the action to work.
2025-07-30 10:16:17 -04:00
### Automatic dist updates
If you forget to rebuild dist, the `update-dist` workflow will automatically update it for you on pull requests.
## Node Version
This project requires Node.js v20. We recommend using nvm to manage Node versions:
```bash
nvm use
npm ci
npm run build
```
## Testing
Run tests with:
```bash
npm test
```
## Pre-commit Hooks
This project uses pre-commit hooks to ensure code quality. Install them with:
```bash
pre-commit install
```