This action works by evaluating the user input as the body of an asynchronous JavaScript function. See main.ts for details.
Before the action can be used, it needs to be compiled to JavaScript:
bash> npm run build
It also has a pre-commit hook configured via husky that should run the build script before each commit. Additionally, this hook formats code and lints it, as well.
Releases are done manually, for now:
- Ensure that the build is up to date with
npm run build
. It's also good to ensure you have the correct dependencies installed by runningnpm install
before you build. - Bump the package.json and package-lock.json version numbers and commit them. I like to do this with
npm version {major,minor,patch} --no-git-tag-version
. This will bump the version numbers but let you manually commit and tag, yourself. - Update documentation (including updated version numbers).
- Tag main with the new version number and create a GitHub release. Make sure you also force-create and force-push tags for minor and patch updates. For example, when creating v5.2.0 (a minor bump), you want to create (or update)
v5
,v5.2
, andv5.2.0
.