mirror of
https://github.com/selfxyz/self.git
synced 2026-01-08 22:28:11 -05:00
30 lines
613 B
YAML
30 lines
613 B
YAML
name: Yarn Install
|
|
|
|
description: Install Yarn v4 and run yarn install.
|
|
|
|
inputs:
|
|
working_directory:
|
|
description: The directory to install dependencies in.
|
|
required: false
|
|
default: "."
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Install Yarn v4
|
|
shell: bash
|
|
run: |
|
|
corepack enable
|
|
corepack prepare yarn@4.5.0 --activate
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
cache: 'yarn'
|
|
cache-dependency-path: yarn.lock
|
|
|
|
- name: Install dependencies
|
|
shell: bash
|
|
run: yarn install --immutable
|