generated from actions/typescript-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(readme): add contribute and development guide
- Loading branch information
Showing
4 changed files
with
114 additions
and
16 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,31 @@ | ||
# Contributing | ||
|
||
:wave: Hi there! | ||
|
||
We're thrilled that you'd like to contribute to this project. Your help is | ||
essential for keeping it great. | ||
|
||
## Submitting a pull request | ||
|
||
We use [pull requests](https://github.com/exiguus/fta-github-action/pulls) to | ||
contribute new features, fixes, or documentation. | ||
|
||
Here are a few things you can do that will increase the likelihood of your pull | ||
request being accepted: | ||
|
||
- Keep your change as focused as possible. If there are multiple changes you | ||
would like to make that are not dependent upon each other, submit them as | ||
separate pull requests. | ||
- Write [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/). | ||
- Write | ||
[descriptive commit messages](https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html). | ||
|
||
Draft pull requests are also welcome to get feedback early on, or if there is | ||
something blocking you. | ||
|
||
## Resources | ||
|
||
- [Development Guide](./DEVELOPMENT.md) | ||
- [How to Contribute to Open Source](https://opensource.guide/how-to-contribute/) | ||
- [Using Pull Requests](https://docs.github.com/en/github/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests) | ||
- [GitHub Help](https://docs.github.com/en) |
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,56 @@ | ||
# Development Guide | ||
|
||
## Prerequisites | ||
|
||
- [Docker](https://docs.docker.com/get-docker/) | ||
- [npm](https://www.npmjs.com/get-npm) | ||
- [Node.js](https://nodejs.org/en/download/) | ||
|
||
## Install dependencies | ||
|
||
```bash | ||
npm install | ||
``` | ||
|
||
## Package | ||
|
||
```bash | ||
npm run package:watch | ||
``` | ||
|
||
## Test | ||
|
||
```bash | ||
npm test | ||
``` | ||
|
||
## Run locally | ||
|
||
```bash | ||
npm run all | ||
node dist/index.js | ||
``` | ||
|
||
## Release | ||
|
||
### 1. Update the version | ||
|
||
It is necessary to manually update and commit the version in the package.json | ||
file. | ||
|
||
### 2. Tag and push the new release | ||
|
||
After that a helper script is available to streamline the process of tagging and | ||
pushing new releases for GitHub Actions. | ||
|
||
It performs the following steps: | ||
|
||
1. Get the latest release tag | ||
1. Prompt the user for a new release tag (while displaying the latest release | ||
tag, and a regex to validate the new tag) | ||
1. Tag the new release | ||
1. Push the new tag to the remote | ||
|
||
```bash | ||
node scripts/release.js | ||
``` |
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
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# TODO | ||
|
||
- [x] add unit tests | ||
- [ ] update action.yml descriptions | ||
- [ ] update README.md | ||
- [ ] add more examples | ||
- [ ] add release workflow | ||
- [x] update action.yml descriptions | ||
- [x] update README.md | ||
- [x] add more examples | ||
- [x] add release workflow | ||
- [ ] refactor file_path to project_path |