graasp / graasp/.github

Create action to check package.json

Open
#17 0 comments 0 reactions 1 assignee Assigned to @spaenleh View on GitHub
enhancement
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.