Files
coder/.github/actions/setup-node/action.yaml
T
Muhammad Atif Ali 757ea68d4a ci: fmt, lint and build offlinedocs (#8642)
Co-authored-by: Dean Sheather <dean@deansheather.com>
2023-07-24 10:54:08 +00:00

24 lines
652 B
YAML

name: "Setup Node"
description: |
Sets up the node environment for tests, builds, etc.
inputs:
directory:
description: |
The directory to run the setup in.
required: false
default: "site"
runs:
using: "composite"
steps:
- name: Setup Node
uses: buildjet/setup-node@v3
with:
node-version: 16.20.1
# See https://github.com/actions/setup-node#caching-global-packages-data
cache: "yarn"
cache-dependency-path: ${{ inputs.directory }}/yarn.lock
- name: Install node_modules
shell: bash
run: ../scripts/yarn_install.sh
working-directory: ${{ inputs.directory }}