In this repository you can find templates and examples of some github actions workflows that I use in my own projects. They are mainly focused around Typescript and React Native projects, because that's what I work with most of the time.
Feel free to copy them and use them in your own projects.
Contributions are welcome! If you have a workflow that you think is useful and you want to share it, feel free to open a pull request.
Release with release-it
This workflow is triggered manually and can bypass the ruleset that blocks any push to the main branch. It does it by using a Github App that has been added to the bypass list in the branch protection rules. Take a look at the release-it-setup document to see how to set it up and an alternative approach to the bypass procedure.
This workflow shows how to pass artifacts from one job to another. Take a look at the pass-artifacts-to-next-job document to see how to set it up.
This workflow shows how to run code checks on a pull request that targets the main branch, it runs the build
and lint
scripts.
Take a look at the pull-request-code-checks document to see how to set it up.