Create action to check package.json
- Dominant language
- No language data
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Create a Github Action that parses package.json and ensures that it follows our conventions:
- check that the version of the `dependencies` values is always a fixed semver (regex is `^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$` from the [semver spec](https://semver.org/)). In particular, `github:...` and ranged semvers should not be allowed.
- check that name is name of repo
- check license
- check that `resolutions` is minimal, and that the versions are expected
It shoud prevent branches from being merged if the conditions are not met
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.