From 6cf3a176e87ca8af181a3d42c28baf220914cf1e Mon Sep 17 00:00:00 2001 From: Campbell Allen Date: Wed, 5 Oct 2022 04:15:24 +0100 Subject: [PATCH] add ci_args to npm ci run cmd allow us to pass explicit args to npm ci cmd, e.g. `npm ci --legacy-peer-deps` --- .github/workflows/npm_build.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/npm_build.yaml b/.github/workflows/npm_build.yaml index f864dae..a537a5c 100644 --- a/.github/workflows/npm_build.yaml +++ b/.github/workflows/npm_build.yaml @@ -17,6 +17,11 @@ on: description: 'npm build script' required: true type: string + ci_args: + default: '' + description: 'npm ci args' + required: false + type: string output: description: 'Output directory name' required: true @@ -36,7 +41,7 @@ jobs: with: node-version: ${{ inputs.node_version }} cache: 'npm' - - run: npm ci + - run: npm ci ${{ inputs.ci_args }} - run: npm run ${{ inputs.script }} - name: Write commit_id.txt