Creating a JavaScript action - GitHub Docs
In this tutorial, you'll learn how to build a JavaScript action using the actions toolkit.