Reader small image

You're reading from  GitHub Actions Cookbook

Product typeBook
Published inApr 2024
PublisherPackt
ISBN-139781835468944
Edition1st Edition
Concepts
Right arrow
Author (1)
Michael Kaufmann
Michael Kaufmann
author image
Michael Kaufmann

Michael Kaufmann believes that developers and engineers can be happy and productive at work. He loves DevOps, GitHub, Azure, and modern work. Microsoft has awarded him with the title Microsoft Regional Director (RD) and Microsoft Most Valuable Professional (MVP) – the latter in the category of DevOps and GitHub. Michael is also the founder and managing director of Xebia Microsoft Services, Germany – a consulting company that helps its customers become digital leaders by supporting them in their cloud, DevOps, and digital transformation. Michael shares his knowledge in books, training, and as a frequent speaker at international conferences.
Read more about Michael Kaufmann

Right arrow

Creating a TypeScript action

In this recipe, you will create a basic TypeScript action from a template, build and publish it, and use it in a workflow.

Getting ready…

Make sure you have a reasonably modern version of Node.js (https://nodejs.org/en/download) installed. Follow these steps:

  1. Go to https://github.com/actions/typescript-action and click Use this template | Create a new repository in the top-right corner of the repository (see Figure 3.6):

Figure 3.6 – Creating a new repository from the typescript-action template

  1. Choose your GitHub account as the owner, name it TypeScriptActionRecipe, leave its visibility set to Public, and click Create repository.
  2. Clone the repository locally and open the folder in VS Code.

How to do it…

  1. Open a terminal and go to the root of the repository. Install all the necessary dependencies:
    $ npm install

    The repository contains some unit tests. Run them to check...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
GitHub Actions Cookbook
Published in: Apr 2024Publisher: PacktISBN-13: 9781835468944

Author (1)

author image
Michael Kaufmann

Michael Kaufmann believes that developers and engineers can be happy and productive at work. He loves DevOps, GitHub, Azure, and modern work. Microsoft has awarded him with the title Microsoft Regional Director (RD) and Microsoft Most Valuable Professional (MVP) – the latter in the category of DevOps and GitHub. Michael is also the founder and managing director of Xebia Microsoft Services, Germany – a consulting company that helps its customers become digital leaders by supporting them in their cloud, DevOps, and digital transformation. Michael shares his knowledge in books, training, and as a frequent speaker at international conferences.
Read more about Michael Kaufmann