GitHub Action
Setup Yarn and Node.js Action
v1
Latest version
This GitHub Action sets up a specific version of Node.js and Yarn, installs dependencies, and sets up a cache for Yarn.
- uses: digi-fry/setup-yarn-node-action@v1
with:
node-version: '20'
node-version
: (Required) The version of Node.js to use. This should be a valid Node.js version.
None
name: My Workflow CI
on:
push:
branches:
- main
pull_request:
types:
- opened
- reopened
- synchronize
env:
NODE_VERSION: 20
jobs:
cache-and-install:
runs-on: ubuntu-latest
name: Setup Cache and Install Dependencies
steps:
- name: Setup Cache and Install Dependencies
uses: digi-fry/setup-yarn-node-action@v1
with:
node-version: ${{ env.NODE_VERSION }}