Creating a JavaScript action
The next few pages will walk you through the creation of a JavaScript action. Although basic JavaScript knowledge will be helpful in understanding parts of this section, the main goal is to provide you with knowledge needed to create an action from scratch. Focus on the code itself will be minimal.
Once you are done reading this section, you will be able to create a JavaScript action and verify that it works as intended by using it in a workflow.
Prerequisites
To follow the steps presented in this section, you will need the following:
- A new GitHub repository. Throughout this section, the
talktopri/a-javascript-action
repository will be used. - A local copy of your GitHub repository. Use the
git clone
command to clone your GitHub repository to your workstation. Revisit Chapter 1, Learning the Foundations for GitHub Actions, if you need more details on how to accomplish that. Node.js
version 12.x. Download and installNode.js
on your...