Skip to content
play

GitHub Action

Setup Monorepo node app

v1.2 Latest version

Setup Monorepo node app

play

Setup Monorepo node app

Prepare everything needed for a Nodejs app in a monorepo (cache, dependencies, ...)

Installation

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

              

- name: Setup Monorepo node app

uses: gogaille/setup-monorepo-node-app@v1.2

Learn more about this action in gogaille/setup-monorepo-node-app

Choose a version

Setup monorepo node app

Setup a node app in a monorepo:

  1. Sparse checkout the monorepo directory of the Nodejs app
  2. Setup Nodejs required version
  3. Install dependencies thanks to yarn2

Inputs

node-version

Required Nodejs version. Default "20".

working-directory

Required Directory of the node application in the mono repo. Default ".".

Example usage

- uses: gogaille/setup-monorepo-node-app
  with:
    node-version: 20
    working-directory: some-node-app-dir
- uses: gogaille/setup-monorepo-node-app
  with:
    node-version: 20
    working-directory: some-node-app-dir
    other-patterns-to-sparse-checkout: .github