Can I build node.js app within Github Actions and push the build to master branch?

I’m currently working on a Nuxt.js project and I need to integrate it with CI solution. So far, I managed to set a generation of new build within Github Actions on every push. I can’t find a way to push the generated build to my Github reposition. I found a way however to download .zip artifact with the build.

Is there any way to push newly generated files from Github Actions runner into the master branch?

Thank you in advance for any help.

You can run arbitrary shell code in a step, including git commit and git push.

See e.g. this answer for an example: Github Actions to make changes to a file - #2 by brightran