Files
Davyd NRB 536d2a979d Node.js 16 actions are deprecated. (#1567)
Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3.
For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
2024-02-27 10:12:50 +01:00

25 lines
667 B
YAML

name: Setup Website deps
description: Setup Node.js and install website dependencies
runs:
using: composite
steps:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- name: Cache website deps
id: yarn-cache-website
uses: actions/cache@v4
with:
path: |
./website/node_modules
./website/yarn/install-state.gz
key: website-${{ runner.os }}-yarn-${{ hashFiles('./website/yarn.lock') }}
- name: Install website deps
if: steps.yarn-cache-website.outputs.cache-hit != 'true'
run: yarn --cwd website install --immutable
shell: bash