From ebccfaa6fcd4155444b3dd7a9592d2f847d1b94b Mon Sep 17 00:00:00 2001 From: estebanthi Date: Tue, 24 Mar 2026 14:26:35 +0100 Subject: [PATCH] feat: add install and build commands to node ci workflow --- .github/workflows/node-ci.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/node-ci.yml b/.github/workflows/node-ci.yml index ca8d37e..29ea370 100644 --- a/.github/workflows/node-ci.yml +++ b/.github/workflows/node-ci.yml @@ -21,6 +21,9 @@ on: required: false type: string default: "" + install_command: + type: string + default: "pnpm install --frozen-lockfile" format_command: type: string default: "pnpm format:check" @@ -33,6 +36,9 @@ on: test_command: type: string default: "pnpm test" + build_command: + type: string + default: "" secrets: ssh_private_key: required: false @@ -99,7 +105,8 @@ jobs: ${{ runner.os }}-pnpm- - name: Install dependencies - run: pnpm install --frozen-lockfile + if: ${{ inputs.install_command != '' }} + run: ${{ inputs.install_command }} working-directory: ${{ inputs.working_directory }} - name: Run format check @@ -121,3 +128,8 @@ jobs: if: ${{ inputs.test_command != '' }} run: ${{ inputs.test_command }} working-directory: ${{ inputs.working_directory }} + + - name: Run build + if: ${{ inputs.build_command != '' }} + run: ${{ inputs.build_command }} + working-directory: ${{ inputs.working_directory }}