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` |
|
| `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` |
|
| `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` | `.` |
|
| `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-inputs source="action.yml" -->
|
||||||
|
|
||||||
<!-- action-docs-runs source="action.yml" -->
|
<!-- action-docs-runs source="action.yml" -->
|
||||||
|
|||||||
@@ -22,6 +22,9 @@ inputs:
|
|||||||
WORKING_DIRECTORY:
|
WORKING_DIRECTORY:
|
||||||
description: "Working directory for install, build, and artifact steps"
|
description: "Working directory for install, build, and artifact steps"
|
||||||
default: "."
|
default: "."
|
||||||
|
UPLOAD_ARTIFACT:
|
||||||
|
description: "Whether to upload the build artifact"
|
||||||
|
default: "true"
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
@@ -56,6 +59,7 @@ runs:
|
|||||||
cp node_modules/.prisma/client/libquery_engine-* build/prisma/
|
cp node_modules/.prisma/client/libquery_engine-* build/prisma/
|
||||||
|
|
||||||
- name: Upload Build Artifact
|
- name: Upload Build Artifact
|
||||||
|
if: inputs.UPLOAD_ARTIFACT != 'false'
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{ inputs.ARTIFACT_NAME }}
|
name: ${{ inputs.ARTIFACT_NAME }}
|
||||||
|
|||||||
Reference in New Issue
Block a user