Skip to content

Commit ee25ae3

Browse files
committed
ci: fix prod-deploy.yml
1 parent 88af086 commit ee25ae3

3 files changed

Lines changed: 959 additions & 9 deletions

File tree

.github/workflows/prod-deploy.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,13 @@ jobs:
170170
run: |
171171
pnpm --prefer-offline install
172172
173+
- name: Restore dist
174+
uses: actions/cache@v3
175+
with:
176+
path: |
177+
packages
178+
key: packages-${{ github.run_id }}-${{ github.run_number }}
179+
173180
- name: "Run prisma DB migrations"
174181
run: |
175182
pnpm --filter=@codeimage/api exec prisma migrate deploy
@@ -215,7 +222,7 @@ jobs:
215222
deploy-ui-package:
216223
name: Deploy @codeimage/ui app
217224
environment: Production
218-
needs: [ "install", "lint", "typecheck-packages","build-packages" ]
225+
needs: [ "install", "lint", "build-packages" ]
219226
runs-on: ubuntu-latest
220227
steps:
221228
- uses: actions/checkout@v2
@@ -246,15 +253,16 @@ jobs:
246253
with:
247254
vercel-token: ${{ secrets.VERCEL_TOKEN }}
248255
github-token: ${{ secrets.GITHUB_TOKEN }}
249-
vercel-args: '--prebuilt --prod'
250256
working-directory: packages/ui/dev
251257
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
252258
vercel-project-id: ${{ secrets.VERCEL_UI_DEV_PROJECT_ID }}
259+
vercel-args: '--prebuilt --prod'
260+
253261

254262
deploy-highlight-package:
255263
name: Deploy @codeimage/highlight app
256264
environment: Production
257-
needs: [ "install", "lint", "typecheck-packages","build-packages" ]
265+
needs: [ "install", "lint", "build-packages" ]
258266
runs-on: ubuntu-latest
259267
steps:
260268
- uses: actions/checkout@v2
@@ -285,10 +293,10 @@ jobs:
285293
with:
286294
vercel-token: ${{ secrets.VERCEL_TOKEN }}
287295
github-token: ${{ secrets.GITHUB_TOKEN }}
288-
vercel-args: '--prebuilt --prod'
289296
working-directory: packages/highlight/dev
290297
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
291298
vercel-project-id: ${{ secrets.VERCEL_HIGHLIGHT_DEV_PROJECT_ID }}
299+
vercel-args: '--prebuilt --prod'
292300

293301
deploy-api:
294302
name: Build and Deploy Api

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
"tslib": "^2.4.0",
8181
"tsx": "^3.9.0",
8282
"typescript": "^4.8.4",
83+
"vercel": "28.4.8",
8384
"vite": "^3.0.9"
8485
},
8586
"engines": {

0 commit comments

Comments
 (0)