File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717 "build:completions" : " tsx ./scripts/generate-completions-index.ts" ,
1818 "deploy:completions" : " npm run build:completions && cd completions-cron && npx wrangler deploy" ,
1919 "deploy" : " tsx ./scripts/deploy.ts" ,
20- "deploy:beta" : " BETA=true tsx ./scripts/deploy.ts" ,
2120 "testing" : " codify-deploy"
2221 },
2322 "keywords" : [
Original file line number Diff line number Diff line change @@ -7,16 +7,20 @@ import { createClient } from '@supabase/supabase-js';
77
88const require = createRequire ( import . meta. url ) ;
99
10- const isBeta = process . env . BETA === 'true' ;
1110
1211// This should run the build
1312cp . spawnSync ( 'source ~/.zshrc; npm run build' , { shell : 'zsh' , stdio : 'inherit' } ) ;
1413
15- const version = isBeta ? 'beta' : process . env . npm_package_version ;
14+ const version = process . env . npm_package_version ;
1615if ( ! version ) {
1716 throw new Error ( 'Unable to find version' ) ;
1817}
1918
19+ const isBeta = version . includes ( 'beta' ) ;
20+ if ( isBeta ) {
21+ console . log ( 'Deploying beta version!' )
22+ }
23+
2024const name = process . env . npm_package_name ;
2125if ( ! name ) {
2226 throw new Error ( 'Unable to find package name' ) ;
You can’t perform that action at this time.
0 commit comments