more release stuff

This commit is contained in:
EthanShoeDev
2025-10-06 20:38:07 -04:00
parent 2e98bab83d
commit 858e332953
4 changed files with 11 additions and 1 deletions

View File

@@ -32,7 +32,7 @@ export default {
hooks: {
'before:init': ['turbo run lint:check'],
'before:github:release': 'pnpm run build:signed:apk',
'before:github:release': 'turbo run build:signed:apk',
'after:release': 'echo "Released ${npm.name} v${version}"',
},

View File

@@ -13,6 +13,14 @@ async function getSecrets(): Promise<{
keystoreAlias: string;
keystorePassword: string;
}> {
const isBwUnlocked = await cmd(`bw status`, { stdio: 'pipe' }).then(
({ stdout }) => {
const bwStatus = JSON.parse(stdout) as { status: string };
return bwStatus.status === 'unlocked';
},
);
if (!isBwUnlocked) throw new Error('Bitwarden is not unlocked');
const { stdout: rawBwItemString } = await cmd(
`bw get item "fressh keystore" --raw`,
{

View File

@@ -28,5 +28,6 @@
// Special tasks
"expo:doctor": {},
"test:e2e": {},
"build:signed:apk": {},
},
}

View File

@@ -6,6 +6,7 @@
"ANDROID_*",
"SSL_CERT_FILE",
"GRADLE_OPTS",
"BW_SESSION",
],
"tasks": {
// Defaults