mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-17 10:57:19 +01:00
0d92359da7
Re-creation of https://github.com/Aurorastation/Aurora.3/pull/21046 to skip merge conflict hell. Brings us modern TGUI. **ALTERNATE TITLE: TGUI HELLSCAPE PR ABANDON ALL HOPE YE WHO ENTER HERE** - [x] Migrate build tools (javascript -> typescript, bun for package management). - [x] Upgrade all TGUI dependencies and associated root files to TG-congruent versions (axios, babel, dompurify, eslint, highlight, marked, prettier, sass, source-map, stacktrace-parser, typescript). - [x] InfernoJS -> React migrations - [x] React cleanup and polish (migrate all remaining .js files to appropriate .ts or .tsx filetype, all remaining hooks, linting, error corrections, etc.) - [ ] Test all remaining TGUI interfaces
27 lines
925 B
YAML
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' || '' }}
|