Show HN: Write Github Actions Workflows in Typescript Rather Than YAML https://ift.tt/5KOSXHu

Show HN: Write Github Actions Workflows in Typescript Rather Than YAML Hey HN, I just released github-actions-workflow-ts, an NPM package that allows you to write GitHub Actions workflows in Typescript rather than YAML. The package then generates GH Actions workflow YAML files from your Typescript code. Why? - Type safety - Code re-usability: package and reuse common jobs and steps across different workflows. - Imperative edge: Utilize control flow to control the generation of different kinds of workflows easily. Essentially, I realized that as I write larger and more complicated GH Actions workflows in YAML, they become less readable and thus more prone to errors and harder to maintain/refactor. You can try it out on Replit (free but requires an account to fork my examples and run them yourself). Fork it and run the build command in the shell: - Simple Example: https://ift.tt/qvNAXZb... - Advanced Example: https://ift.tt/qvNAXZb... Read the accompanying blog post here: https://ift.tt/EjmMCog... Please check it out. I'm open to any feedback as I march towards the first stable 1.0.0 release. Thanks https://ift.tt/cxIBHN4 August 30, 2023 at 02:56AM

No comments:

Show HN: Claudoro, Pomodoro timer embedded in the Claude Code statusline https://ift.tt/Kp5WXI1

Show HN: Claudoro, Pomodoro timer embedded in the Claude Code statusline 3 weeks ago I had a nasty accident and fractured my vertebrae. As I...