Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 665 Bytes

readme.md

File metadata and controls

34 lines (25 loc) · 665 Bytes

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