swc/.github/actions/setup-node/action.yml
2024-06-16 22:07:37 +09:00

25 lines
493 B
YAML

name: "Configure Node.js"
description: "Sets Node.js up for CI"
inputs:
node-version:
description: "Node version to install"
required: false
default: "20"
runs:
using: "composite"
steps:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
cache: "yarn"
- name: Enable corepack
shell: bash
run: corepack enable
- name: Install dependencies
shell: bash
run: yarn