Skip to content

Commit c1690c1

Browse files
authored
1 parent 52b1680 commit c1690c1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/docs-build-push.yml

+6
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ on:
4444
auto_deploy_env:
4545
type: string
4646
description: "Env to which auto_deploy_branch will be deployed to. Preview is not supported."
47+
node_dep:
48+
type: boolean
49+
description: "Defines should we run npm ci or not"
4750

4851
env:
4952
GO_VERISON: "1.21" # Go version used for `hugo mod get`
@@ -208,6 +211,9 @@ jobs:
208211
mkdir -p ${{inputs.docs_build_path}}/static/
209212
cp buildInfo.json ${{inputs.docs_build_path}}/static/
210213
214+
- name: Setup node deps
215+
if: inputs.node_dep == true
216+
run: npm ci
211217

212218
- name: Build Hugo for PR preview
213219
if: inputs.doc_type == 'hugo' && (github.event.action == 'synchronize' || github.event.action == 'opened' || env.DEPLOYMENT_ENV == 'preview')

0 commit comments

Comments
 (0)