File tree Expand file tree Collapse file tree 5 files changed +13
-3
lines changed
Expand file tree Collapse file tree 5 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 5151 version : ${{ github.sha }}
5252
5353 - name : Deploy
54- run : npx turbo run deploy --filter=roam --ui stream
54+ run : npx turbo run deploy --filter=roam --ui stream -- --no-compile
Original file line number Diff line number Diff line change 5252 version : ${{ github.sha }} # Optional; falls back to current commit SHA
5353
5454 - name : Deploy
55- run : npx turbo run deploy --filter=roam --ui stream
55+ run : npx turbo run deploy --filter=roam --ui stream -- --no-compile
Original file line number Diff line number Diff line change 5151 version : ${{ steps.roam-version.outputs.current-version }}
5252
5353 - name : Update Roam Depot Extension
54- run : npx turbo run publish --filter=roam --ui stream
54+ run : npx turbo run publish --filter=roam --ui stream -- --no-compile
Original file line number Diff line number Diff line change 11import { put } from "@vercel/blob" ;
22import fs , { readFileSync } from "fs" ;
33import { join } from "path" ;
4+ import { compile } from "./compile" ;
45import { config } from "@repo/database/dbDotEnv" ;
56import { execSync } from "child_process" ;
67
@@ -15,6 +16,14 @@ const deploy = async () => {
1516 } ;
1617
1718 console . log ( "Deploying ..." ) ;
19+ if ( ! process . argv . includes ( "--no-compile" ) )
20+ try {
21+ console . log ( "Building" ) ;
22+ await compile ( { } ) ;
23+ } catch ( error ) {
24+ console . error ( "Deployment failed on compile:" , error ) ;
25+ process . exit ( 1 ) ;
26+ }
1827 try {
1928 const resolvedWorkspace = "roam" ;
2029 if ( ! resolvedWorkspace ) throw new Error ( "Workspace is required" ) ;
Original file line number Diff line number Diff line change 8080 " POSTHOG_CLI_ENV_ID"
8181 ],
8282 "cache" : false ,
83+ "dependsOn" : [" ^build" ],
8384 "inputs" : [" $TURBO_DEFAULT$" , " .env*" ]
8485 },
8586 "publish" : {
You can’t perform that action at this time.
0 commit comments