mirror of
https://github.com/obi1kenobi/cargo-semver-checks-action.git
synced 2024-11-25 09:29:32 +01:00
add CONTRIBUTING.md (#84)
This commit is contained in:
parent
233c33101f
commit
7272cc2caa
1 changed files with 50 additions and 0 deletions
50
CONTRIBUTING.md
Normal file
50
CONTRIBUTING.md
Normal file
|
@ -0,0 +1,50 @@
|
|||
# Contributing
|
||||
|
||||
## General
|
||||
|
||||
A good general description on how to develop a GitHub JavaScript action can be found [here](https://docs.github.com/en/actions/creating-actions/creating-a-javascript-action).
|
||||
|
||||
## Developing locally
|
||||
|
||||
### Prerequisites
|
||||
|
||||
- Node 20
|
||||
|
||||
### Installing dependencies
|
||||
|
||||
`npm install`
|
||||
|
||||
### Building the action
|
||||
|
||||
`npm run build`
|
||||
|
||||
Updates the contents of the `dist` folder, which then _needs to be committed_.
|
||||
|
||||
### Formatting source files
|
||||
|
||||
`npm run format`
|
||||
|
||||
### Checking formatting of source files
|
||||
|
||||
`npm run format-check`
|
||||
|
||||
### Linting source files
|
||||
|
||||
`npm run lint`
|
||||
|
||||
### Running tests
|
||||
|
||||
`npm run test`
|
||||
|
||||
### Running all of the above sequentially
|
||||
|
||||
`npm run all`
|
||||
|
||||
## Adding a new input parameter
|
||||
|
||||
The following places need to be updated
|
||||
|
||||
- action.yml
|
||||
- src/main.ts (`getCheckReleaseArguments()`)
|
||||
- dist/index.js (automatically generated)
|
||||
- README.md
|
Loading…
Reference in a new issue