mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
ci: fmt, lint and build offlinedocs (#8642)
Co-authored-by: Dean Sheather <dean@deansheather.com>
This commit is contained in:
co-authored by
Dean Sheather
parent
87f07b9f2f
commit
757ea68d4a
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user