This action is written in TypeScript using Github's template action project as a starting point. The unit tests can be run locally, and the repository includes a Github Actions workflow that will invoke the in-tree version of the action.
After cloning the repository, the dependencies can be installed with:
$ npm installThe TypeScript code in src/ can be compiled to JavaScript with:
$ npm run buildThe tests in __tests__/ can be run with:
$ npm testThe packed JavaScript actually run by the Github Actions system can be built with:
$ npm run packIf you are putting together a pull request, you can run through all steps including code reformatting and linting with:
$ npm run all- Update the version number in
package.json, commit and push. - On the Github website, make a release matching the version number (e.g.
v1.0.0). - Update the
v1tag to point at the new release revision.
git tag -fa v1 -m "Update v1 tag"
git push origin v1 --force