Skip to content

Commit 6b03654

Browse files
committed
Imrpove beta deploys (just deploy with the version as -beta now
1 parent 6006ce2 commit 6b03654

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
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": [

scripts/deploy.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,20 @@ import { createClient } from '@supabase/supabase-js';
77

88
const require = createRequire(import.meta.url);
99

10-
const isBeta = process.env.BETA === 'true';
1110

1211
// This should run the build
1312
cp.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;
1615
if (!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+
2024
const name = process.env.npm_package_name;
2125
if (!name) {
2226
throw new Error('Unable to find package name');

0 commit comments

Comments
 (0)