nx/.github/workflows/setup/action.yml
BAK BYEONG JUN 18932f4a5f
Some checks failed
CI / checks (push) Has been cancelled
init
2025-05-06 13:52:36 +00:00

28 lines
803 B
YAML

name: Setup
description: Setup tasks
inputs:
node_version: # id of input
description: 'Version of node to use'
required: true
default: '20'
runs:
using: 'composite'
steps:
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node_version}}
- name: Install
uses: dtolnay/rust-toolchain@1.79.0
- uses: actions/cache@v4
id: workspace-cache
with:
path: node_modules
key: ${{ runner.os }}-${{ inputs.node_version }}-workspace-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ inputs.node_version }}-workspace-
- run: yarn install --frozen-lockfile
shell: bash