mirror of
https://github.com/swc-project/swc.git
synced 2024-12-02 12:05:54 +03:00
2122756394
**Description:** This is a follow-up PR of https://github.com/swc-project/swc/pull/9061
25 lines
493 B
YAML
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
|