Skip to content

Composite action that will check out our code, set up node and yarn with caching, and install yarn dependencies

License

Notifications You must be signed in to change notification settings

brianespinosa/checkout-setup-node-install

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

checkout-setup-node-install

Last Updated License: MIT

Composite action that will check out our code, set up node and yarn with caching, and install yarn dependencies

brianespinosa/checkout-setup-node-install@main

Usage

name: CI

on:
  push:
    branches: [main]
  pull_request:

concurrency:
  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
  cancel-in-progress: true

jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
      - uses: brianespinosa/checkout-setup-node-install@main
      - run: yarn lint

  test:
    runs-on: ubuntu-latest
    steps:
      - uses: brianespinosa/checkout-setup-node-install@main
      - run: yarn test

  build:
    runs-on: ubuntu-latest
    needs: [lint, test]
    steps:
      - uses: brianespinosa/checkout-setup-node-install@main
      - run: yarn build

Assumptions

  • We are using a modern version (v2+) of yarn as a package manager
  • We are using a .nvmrc file to define the version of node to use
  • We do not need to checkout the entire git history (tags, etc)
  • We do not want to change the yarn.lock file at all during install

About

Composite action that will check out our code, set up node and yarn with caching, and install yarn dependencies

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published