For development purposes, this repo uses bun as a package manager, bundler and TypeScript script runner.
You can install bun by following the instruction on https://bun.com/
- Run
bun installto install the dependencies. - Run
bun run buildto build the action. - Run
bun run formatto format the code. This is also done automatically by the pre-commit hook (please do not skip it).
In order to publish a new version of the action, simply update the "version" in the package.json and merge into the main branch.
If your changed files include find-successful-workflow.ts, then you should also update the bundle in the dist folder using npm run build.
The workflow at ./github/workflows/publish.yml will apply the new version in the form of tags, which is all that is needed to publish an Action.
Example of tags applied:
- Let's say that the new version you have applied is
1.2.3. - The commit will be tagged with
v1.2.3as you would expect, but it will also be tagged withv1.2andv1. This is so that we are effectively moving the "head" of these major and minor versions up to the latest patch release which is relevant to them, meaning users can have workflows which specify onlyv1orv1.2and always be ensured that they are receiving the latest and greatest.