mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 11:16:31 -05:00
a51f1c668f
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
36 lines
1,002 B
YAML
36 lines
1,002 B
YAML
# SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
name: Setup Node
|
|
description: "Setups node and configures the cache"
|
|
|
|
inputs:
|
|
NODEJS_VERSION:
|
|
required: true
|
|
description: "NodeJS version to install"
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Get yarn cache directory path
|
|
id: yarn-cache-dir-path
|
|
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
|
|
shell: bash
|
|
|
|
- name: Cache yarn cache
|
|
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
|
|
id: yarn-cache
|
|
with:
|
|
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
|
key: ${{ runner.os }}-yarn-master
|
|
|
|
- name: Set up NodeJS
|
|
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
|
|
with:
|
|
node-version: ${{ inputs.NODEJS_VERSION }}
|
|
|
|
- name: Install dependencies
|
|
run: yarn install --immutable
|
|
working-directory: .
|
|
shell: bash
|