Files
VOREStation/.github/actions/setup_node/action.yml
T
Selis 549313bd7c 1664 patch (#17907)
* Patch for byond 1664

* Rust

* Rust

* Adding librust_g.so to LFS

* librust_g.so: convert to Git LFS

* librust_g.so: convert to Git LFS

* Migrate

* Updated dependencies.sh & Fallback mirror for BYOND binaries

* Checkout with LFS

* Pulling LFS files

* Verbose logging

* More logging

* Reverts verbose logging & adds step for byond dependencies

* 🐚

* 32

* Replaces LFS with latest binary of rust-g release

* Removes wrong file
2025-06-26 14:02:14 +02:00

27 lines
925 B
YAML

# This action is a wrapper around `actions/setup-node`, to use the version specified in
# `dependencies.sh`.
name: Setup Node
description: Install Node using the version specified in `dependencies.sh`; additionally, restores the Yarn cache if one exists
inputs:
restore-yarn-cache:
description: "If `true`, restores the Yarn cache alongside installing node."
required: false
type: boolean
default: false
runs:
using: composite
steps:
- name: Configure Node version
shell: bash
run: |
source dependencies.sh
echo "NODE_VERSION_REQUIRED=$NODE_VERSION_LTS" >> $GITHUB_ENV
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION_REQUIRED }}
cache: ${{ fromJSON(inputs.restore-yarn-cache) && 'yarn' || '' }}
cache-dependency-path: ${{ fromJSON(inputs.restore-yarn-cache) && 'tgui/yarn.lock' || '' }}