Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
branches: [dev, main]
paths:
- "apps/sanity/**"
- "sanity.blueprint.ts"
- "pnpm-lock.yaml"
- ".github/workflows/deploy.yml"

Expand Down Expand Up @@ -39,8 +40,7 @@ jobs:

- name: Deploy Sanity Blueprints Functions
run: |
npx sanity blueprints deploy --project-id ${{ vars.SANITY_STUDIO_PROJECT_ID }} --stack ${{ vars.SANITY_STUDIO_DATASET }}
working-directory: apps/sanity
pnpm exec sanity blueprints deploy --project-id ${{ vars.SANITY_STUDIO_PROJECT_ID }} --stack ${{ vars.SANITY_STUDIO_DATASET }}
env:
SANITY_AUTH_TOKEN: ${{ secrets.SANITY_AUTH_TOKEN }}
SANITY_PROJECT_ID: ${{ vars.SANITY_STUDIO_PROJECT_ID }}
Expand Down Expand Up @@ -77,8 +77,7 @@ jobs:

- name: Deploy Sanity Blueprints Functions
run: |
npx sanity blueprints deploy --project-id ${{ vars.SANITY_STUDIO_PROJECT_ID }} --stack ${{ vars.SANITY_STUDIO_DATASET }}
working-directory: apps/sanity
pnpm exec sanity blueprints deploy --project-id ${{ vars.SANITY_STUDIO_PROJECT_ID }} --stack ${{ vars.SANITY_STUDIO_DATASET }}
env:
SANITY_AUTH_TOKEN: ${{ secrets.SANITY_AUTH_TOKEN }}
SANITY_PROJECT_ID: ${{ vars.SANITY_STUDIO_PROJECT_ID }}
Expand Down
2 changes: 1 addition & 1 deletion apps/sanity/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"dev": "sanity dev",
"build": "sanity build",
"deploy": "sanity deploy",
"blueprints:deploy": "sanity blueprints deploy",
"blueprints:deploy": "pnpm --dir ../.. blueprints:deploy",
"functions:dev": "sanity functions dev",
"typegen:extract": "sanity schema extract --path=./extract.json --workspace production --force",
"typegen": "pnpm run typegen:extract && sanity typegen generate"
Expand Down
12 changes: 12 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,24 @@
"build:dashboard": "pnpm --filter @codingcatdev/web build",
"build:studio": "pnpm --filter @codingcatdev/sanity build",
"deploy:studio": "pnpm --filter @codingcatdev/sanity deploy",
"deploy:blueprints": "sanity blueprints deploy",
"blueprints:deploy": "sanity blueprints deploy",
"blueprints:plan": "sanity blueprints plan",
"blueprints:doctor": "sanity blueprints doctor",
"lint": "pnpm --filter @codingcatdev/site lint",
"typecheck": "pnpm --filter @codingcatdev/site typecheck",
"typegen": "pnpm --filter @codingcatdev/sanity typegen",
"build:production": "pnpm --filter @codingcatdev/site build:production",
"preview": "pnpm --filter @codingcatdev/site preview",
"test:e2e": "pnpm --filter @codingcatdev/site test:e2e"
},
"devDependencies": {
"@portabletext/markdown": "^2.5.0",
"@sanity/blueprints": "^0.28.0",
"@sanity/client": "^8.9.0",
"@sanity/functions": "^1.8.1",
"@sanity/image-url": "^2.1.1",
"sanity": "^6.9.2"
},
"packageManager": "[email protected]"
}
Loading
Loading