allow skip build artifact for node action
This commit is contained in:
@@ -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" -->
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user