cprecioso / action-prepare-node

Action to install Node.js, Corepack, Yarn, and your dependencies. Uses a cache for speeding up following runs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

action-prepare-node

Installs Node.js, Corepack, Yarn, and install the dependencies. Uses a cache for speeding up following runs.

Project requirements

Usage

Add the action to the job(s) in your workflow(s) where you need Node and your dependencies available.

For example:

jobs:
  build:
    runs-on: ubuntu-latest

    permissions:
      contents: read
      packages: read

    steps:
      - uses: actions/checkout@v3
        with:
          persist-credentials: false
      - uses: cprecioso/action-prepare-node@v1
      - run: yarn build

About

Action to install Node.js, Corepack, Yarn, and your dependencies. Uses a cache for speeding up following runs.