|
1 | 1 | # Create Changelog
|
2 | 2 |
|
3 | 3 | [](https://github.com/arduino/create-changelog/actions)
|
| 4 | +[](https://github.com/arduino/create-changelog/actions/workflows/check-packaging-ncc-typescript-npm.yml) |
| 5 | +[](https://github.com/arduino/create-changelog/actions/workflows/test-integration.yml) |
4 | 6 |
|
5 | 7 | This actions is an highly opinionated tool that creates changelogs from the git repository commit history.
|
6 | 8 |
|
@@ -73,30 +75,71 @@ The action accepts some properties:
|
73 | 75 | case-insensitive-regex: true
|
74 | 76 | ```
|
75 | 77 |
|
76 |
| -## Development |
| 78 | +## Development workflow |
| 79 | +
|
| 80 | +### 1. Install tools |
| 81 | +
|
| 82 | +#### Node.js |
| 83 | +
|
| 84 | +[**npm**](https://www.npmjs.com/) is used for dependency management. |
| 85 | +
|
| 86 | +Follow the installation instructions here:<br /> |
| 87 | +https://nodejs.dev/download |
| 88 | +
|
| 89 | +### 2. Install dependencies |
77 | 90 |
|
78 | 91 | To work on the codebase you have to install all the dependencies:
|
79 | 92 |
|
80 |
| -```sh |
81 |
| -# npm install |
82 | 93 | ```
|
| 94 | +npm install |
| 95 | +``` |
| 96 | +
|
| 97 | +### 3. Coding |
| 98 | +
|
| 99 | +Now you're ready to work some [TypeScript](https://www.typescriptlang.org/) magic! |
| 100 | +
|
| 101 | +Make sure to write or update tests for your work when appropriate. |
| 102 | +
|
| 103 | +### 4. Format code |
| 104 | +
|
| 105 | +Format the code to follow the standard style for the project: |
| 106 | +
|
| 107 | +``` |
| 108 | +npm run format |
| 109 | +``` |
| 110 | +
|
| 111 | +### 5. Run tests |
83 | 112 |
|
84 | 113 | To run tests:
|
85 | 114 |
|
86 |
| -```sh |
87 |
| -# npm run test |
| 115 | +``` |
| 116 | +npm run test |
88 | 117 | ```
|
89 | 118 |
|
90 | 119 | See the [official Github documentation][pat-docs] to know more about Personal Access Tokens.
|
91 | 120 |
|
92 |
| -## Release |
| 121 | +### 6. Build |
| 122 | +
|
| 123 | +It is necessary to compile the code before it can be used by GitHub Actions. Remember to run these commands before committing any code changes: |
| 124 | +
|
| 125 | +``` |
| 126 | +npm run build |
| 127 | +npm run pack |
| 128 | +``` |
| 129 | +
|
| 130 | +### 7. Commit |
| 131 | +
|
| 132 | +Everything is now ready to make your contribution to the project, so commit it to the repository and submit a pull request. |
| 133 | +
|
| 134 | +Thanks! |
| 135 | +
|
| 136 | +## Release workflow |
| 137 | +
|
| 138 | +Instructions for releasing a new version of the action: |
93 | 139 |
|
94 |
| -1. `npm install` to add all the dependencies, included development. |
95 |
| -2. `npm run build` to build the Action under the `./lib` folder. |
96 |
| -3. `npm run test` to see everything works as expected. |
97 |
| -4. `npm run pack` to package for distribution |
98 |
| -5. `git add src dist` to check in the code that matters. |
99 |
| -6. open a PR and request a review. |
| 140 | +1. If the release will increment the major version, update the action refs in the examples in `README.md` (e.g., `uses: arduino/arduino-lint-action@v1` -> `uses: arduino/arduino-lint-action@v2`). |
| 141 | +1. Create a [GitHub release](https://docs.github.com/en/github/administering-a-repository/managing-releases-in-a-repository#creating-a-release), following the `vX.Y.Z` tag name convention. Make sure to follow [the SemVer specification](https://semver.org/). |
| 142 | +1. Rebase the release branch for that major version (e.g., `v1` branch for the `v1.x.x` tags) on the tag. If no branch exists for the release's major version, create one. |
100 | 143 |
|
101 | 144 | [pat-docs]: https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token
|
102 | 145 |
|
|
0 commit comments