diff --git a/node/README.md b/node/README.md index 5562d14..8bfc5eb 100644 --- a/node/README.md +++ b/node/README.md @@ -18,6 +18,7 @@ Install dependencies, build, and upload a build artifact | `ARTIFACT_PATH` |

Path to upload as the artifact

| `false` | `dist` | | `COPY_PRISMA_ENGINE` |

Copy the Prisma query engine binaries into the build directory

| `false` | `false` | | `WORKING_DIRECTORY` |

Working directory for install, build, and artifact steps

| `false` | `.` | +| `UPLOAD_ARTIFACT` |

Whether to upload the build artifact

| `false` | `true` | diff --git a/node/action.yml b/node/action.yml index 7a2f2c4..3c49a4c 100644 --- a/node/action.yml +++ b/node/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 }}