ci(storybook): add production file of deps to be inputs of storybook (#4414)

This commit is contained in:
Joooye_34 2023-09-19 12:53:12 +08:00 committed by GitHub
parent 9aafaf865e
commit f395a955a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,48 @@
{
"name": "@affine/storybook",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"targets": {
"build": {
"executor": "nx:run-script",
"dependsOn": ["^build"],
"inputs": [
"default",
"^production",
"{workspaceRoot}/apps/core/src/**/*",
"{workspaceRoot}/infra/**/*",
"{workspaceRoot}/sdk/**/*",
{
"runtime": "node -v"
},
{
"env": "BUILD_TYPE"
},
{
"env": "PERFSEE_TOKEN"
},
{
"env": "SENTRY_ORG"
},
{
"env": "SENTRY_PROJECT"
},
{
"env": "SENTRY_AUTH_TOKEN"
},
{
"env": "NEXT_PUBLIC_SENTRY_DSN"
},
{
"env": "DISTRIBUTION"
},
{
"env": "COVERAGE"
}
],
"options": {
"script": "build"
},
"outputs": ["{projectRoot}/storybook-static"]
}
}
}