Skip to content
check-circle

GitHub Action

Checkout Node Project

v1 Latest version

Checkout Node Project

check-circle

Checkout Node Project

Checkout, install Node, and run `npm ci`

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Checkout Node Project

uses: adamhamlin/checkout-node-project@v1

Learn more about this action in adamhamlin/checkout-node-project

Choose a version

checkout-node-project

A simple composite GitHub Action to checkout and initialize a Node project.

Usage

Remove boilerplate to initialize your node project, so you can replace...

steps:
  - name: Checkout your branch
    uses: actions/checkout@v4

  - name: Then install Node.js
    uses: actions/setup-node@v4
    with:
      node-version: 20.x

  - name: Then install dependencies
    run: npm ci

with...

steps:
  - name: All above steps in one!
    uses: adamhamlin/checkout-node-project@v1
    with:
      node-version: 20.x