npm is used for dependency management.
Follow the installation instructions here:
https://nodejs.dev/en/download
To work on the codebase you have to install all the dependencies:
npm install
Now you're ready to work some TypeScript magic!
Make sure to write or update tests for your work when appropriate.
Format the code to follow the standard style for the project:
npm run format
To run the tests:
npm run test
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:
task build
Everything is now ready to make your contribution to the project, so commit it to the repository and submit a pull request.
Thanks!
To release a new version of the Action the workflow should be the following:
- If the release will increment the major version, update the action refs in the examples in README.md
(e.g.,
uses: arduino/setup-protoc@v1
->uses: arduino/setup-protoc@v2
). - open a PR and request a review.
- After PR is merged, create a release, following the
vX.X.X
tag name convention. - After the release, 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.