0

Firstly, I just wanted to mention that I don't have much experience in using GitHub actions. However, I would like my typescript code to be built, and pushed to a production branch whenever there is a commit to my main branch. Is there anyway to do this?

ToastOnAStick
  • 33
  • 3
  • 6
  • 1
    [Google is your friend here.](https://github.com/marketplace/actions/typescript-compiler) – GAntoine Jul 02 '21 at 23:14
  • 1
    Personally I would not want to have a secondary commit for every commit I do just get my typescript files built. Why commit your javascript files at all? – Evert Jul 02 '21 at 23:23

1 Answers1

1

You can use the following two actions to achieve what you want.

  1. Build your code with the following action: typescript-compiler
  2. Then follow this question to push the resultant build to Github Push to Github

Basically, you are done, if you need any extra step you can always go to actions marketpalce or build your own.

Ricardo
  • 91
  • 5