Write Github Actions Workflows in Typescript Rather Than YAML
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://replit.com/@EmmanuelKyeyune/github-actions-workflow-... - Advanced Example: https://replit.com/@EmmanuelKyeyune/github-actions-workflow-... Read the accompanying blog post here: https://emmanuelnk.hashnode.dev/simplifying-github-actions-w... Please check it out. I'm open to any feedback as I march towards the first stable 1.0.0 release. Thanks
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Correct prediction on native model
Similar products
An OIDC issuer for GitHub Actions pull_request workflows
GitHub Actions for Pixela
Sticky Disks in GitHub Actions
Butler – GitHub Actions Oversight Across Organisations
Chainflow – API call workflows in TypeScript
Reuse GitHub Actions workflows across repositories
GitHub Actions for Agents
GitHub Action Template to Write Actions in Bash
GitHub Actions I built for automating Terraform workflows
DuoCode 1.0 bridges the gap between C# and TypeScript