Skip to content

node_dep #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 29, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/docs-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ on:
auto_deploy_env:
type: string
description: "Env to which auto_deploy_branch will be deployed to. Preview is not supported."
node_dep:
type: boolean
description: "Defines should we run npm ci or not"

env:
GO_VERISON: "1.21" # Go version used for `hugo mod get`
Expand Down Expand Up @@ -208,6 +211,9 @@ jobs:
mkdir -p ${{inputs.docs_build_path}}/static/
cp buildInfo.json ${{inputs.docs_build_path}}/static/

- name: Setup node deps
if: inputs.node_dep == true
run: npm ci

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