mirror of
https://github.com/EthanShoeDev/fressh.git
synced 2026-01-10 05:42:50 +00:00
more release stuff
This commit is contained in:
@@ -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}"',
|
||||
},
|
||||
|
||||
@@ -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`,
|
||||
{
|
||||
|
||||
@@ -28,5 +28,6 @@
|
||||
// Special tasks
|
||||
"expo:doctor": {},
|
||||
"test:e2e": {},
|
||||
"build:signed:apk": {},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
"ANDROID_*",
|
||||
"SSL_CERT_FILE",
|
||||
"GRADLE_OPTS",
|
||||
"BW_SESSION",
|
||||
],
|
||||
"tasks": {
|
||||
// Defaults
|
||||
|
||||
Reference in New Issue
Block a user