allow skip build artifact for node action

This commit is contained in:
2026-06-05 17:24:49 -04:00
parent 395bf58622
commit 11fd063f95
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -18,6 +18,7 @@ Install dependencies, build, and upload a build artifact
| `ARTIFACT_PATH` | <p>Path to upload as the artifact</p> | `false` | `dist` |
| `COPY_PRISMA_ENGINE` | <p>Copy the Prisma query engine binaries into the build directory</p> | `false` | `false` |
| `WORKING_DIRECTORY` | <p>Working directory for install, build, and artifact steps</p> | `false` | `.` |
| `UPLOAD_ARTIFACT` | <p>Whether to upload the build artifact</p> | `false` | `true` |
<!-- action-docs-inputs source="action.yml" -->
<!-- action-docs-runs source="action.yml" -->
+4
View File
@@ -22,6 +22,9 @@ inputs:
WORKING_DIRECTORY:
description: "Working directory for install, build, and artifact steps"
default: "."
UPLOAD_ARTIFACT:
description: "Whether to upload the build artifact"
default: "true"
runs:
using: composite
@@ -56,6 +59,7 @@ runs:
cp node_modules/.prisma/client/libquery_engine-* build/prisma/
- name: Upload Build Artifact
if: inputs.UPLOAD_ARTIFACT != 'false'
uses: actions/upload-artifact@v3
with:
name: ${{ inputs.ARTIFACT_NAME }}