ci: fmt, lint and build offlinedocs (#8642)

Co-authored-by: Dean Sheather <dean@deansheather.com>
This commit is contained in:
Muhammad Atif Ali
2023-07-24 10:54:08 +00:00
committed by GitHub
co-authored by Dean Sheather
parent 87f07b9f2f
commit 757ea68d4a
4 changed files with 945 additions and 674 deletions
+8 -2
View File
@@ -1,6 +1,12 @@
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:
@@ -10,8 +16,8 @@ runs:
node-version: 16.20.1
# See https://github.com/actions/setup-node#caching-global-packages-data
cache: "yarn"
cache-dependency-path: "site/yarn.lock"
cache-dependency-path: ${{ inputs.directory }}/yarn.lock
- name: Install node_modules
shell: bash
run: ../scripts/yarn_install.sh
working-directory: site
working-directory: ${{ inputs.directory }}