We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52b1680 commit c1690c1Copy full SHA for c1690c1
.github/workflows/docs-build-push.yml
@@ -44,6 +44,9 @@ on:
44
auto_deploy_env:
45
type: string
46
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"
50
51
env:
52
GO_VERISON: "1.21" # Go version used for `hugo mod get`
@@ -208,6 +211,9 @@ jobs:
208
211
mkdir -p ${{inputs.docs_build_path}}/static/
209
212
cp buildInfo.json ${{inputs.docs_build_path}}/static/
210
213
214
+ - name: Setup node deps
215
+ if: inputs.node_dep == true
216
+ run: npm ci
217
218
- name: Build Hugo for PR preview
219
if: inputs.doc_type == 'hugo' && (github.event.action == 'synchronize' || github.event.action == 'opened' || env.DEPLOYMENT_ENV == 'preview')
0 commit comments