Our great sponsors
-
git-get-release-action
Github Action that allows you to get release information by release id, tag, commit SHA (current commit or specified).
-
javascript-action
Create a JavaScript Action with tests, linting, workflow, publishing, and versioning
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
typescript-action
Create a TypeScript Action with tests, linting, workflow, publishing, and versioning
-
ncc
Compile a Node.js project into a single file. Supports TypeScript, binary addons, dynamic requires.
If you are just looking for a quick code example, jump to this one and come back for an explanation 🙂
The basic approach is pretty easy and described in GitHub documentation here. Also, there are simple JavaScript and TypeScript action examples provided by GitHub. I will not focus on it here.
The basic approach is pretty easy and described in GitHub documentation here. Also, there are simple JavaScript and TypeScript action examples provided by GitHub. I will not focus on it here.
The most unclear and confusing part is packing the code using ncc. The necessity of this step is caused by GitHub’s approach to running your Action.