forked from korthout/backport-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: extract contributing guide from readme
The README.md was becoming long. It also didn't really explain to users and potential contributors how they can contribute.
- Loading branch information
Showing
2 changed files
with
69 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# Contributing to backport action | ||
|
||
I welcome contributions for feature requests and bug reports, as well as for docs and code changes. | ||
|
||
## Feature requests and bug reports | ||
|
||
If you would want to see something added or changed, or encountered a bug. | ||
Please open an [issue on GitHub](https://github.com/korthout/backport-action/issues). | ||
|
||
## Docs changes | ||
|
||
Saw a typo or want to make other changes to the [README](https://korthout.github.io/backport-action/blob/main/README.md)? | ||
Feel free to open a pull request with your changes. | ||
|
||
## Code changes | ||
|
||
I welcome code changes. | ||
If you're thinking of opening a large pull request, please consider opening an issue on GitHub first to discuss it. | ||
|
||
### Build from source | ||
|
||
Install the dependencies. | ||
|
||
``` | ||
npm install | ||
``` | ||
|
||
Apply the automatic formatting to the source code. | ||
|
||
``` | ||
npm run format | ||
``` | ||
|
||
Build and package the action for distribution. | ||
|
||
``` | ||
npm run build && npm run package | ||
``` | ||
|
||
### Testing | ||
|
||
Run all tests. | ||
|
||
``` | ||
npm test | ||
``` | ||
|
||
Run all tests with additional console output. | ||
|
||
``` | ||
npm run test-verbose | ||
``` | ||
|
||
Shorthand for format, build, package and test. | ||
|
||
``` | ||
npm run all | ||
``` | ||
|
||
This action can also be tested using [korthout/backport-action-test](https://github.com/korthout/backport-action-test). | ||
|
||
### Releases | ||
|
||
The distribution is hosted in this repository under `dist`. | ||
Simply build and package the distribution and commit the changes to publish a new snapshot version. | ||
|
||
To release a version, run the [Release](https://github.com/korthout/backport-action/actions/workflows/release.yml) workflow from the branch that should be released. | ||
This sets the release version and tags the release commit. | ||
It also creates/moves the major and minor tags (e.g. `v1` and `v1.2`) to the latest corresponding release as [officially recommended](https://github.com/actions/toolkit/blob/master/docs/action-versioning.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters