Node.js at v20.4.0+ and NPM v9.0.0+ are required.
To install modules run:
npm install # or npm inpm run lint- to run linter for codebasenpm run prettier:check- to run prettier check (used for CI)npm run prettier- to run prettier with fixing errors (used for local)npm run test- for running unit testsnpm run test:watch- for running unit tests in watch modenpm run test:coverage- for check unit tests coveragenpm run test:ci- for running unit tests in ci modenpm run bundle- package the TypeScript for distributionnpm run all- runs prettier, lint, tests, coverage and bundle. Recommended to run before creating PR and sending to review.npm run fake-server:start- fake server needed for smoke tests in CI.
These steps assume the action code is already built, the ./dist folder
contains the build artifacts, and these changes are committed and pushed to the
main branch.
To release a new version of the action, follow these steps:
- Check out the
mainbranch locally. - Run
git pullto fetch the latest changes. - Run
npm run releaseand enter a new release tag, for examplev1.0.9.Note: The script sets the tag to the current commit and pushes it to GitHub. Make sure you have committed and pushed all the changes you want to include in the release to the
mainbranch before running the script. - In the next prompt, type
yto also move thev1tag to the current commit.