Compare commits
2 Commits
362593798c
...
c1b59b8e20
Author | SHA1 | Date | |
---|---|---|---|
c1b59b8e20 | |||
fe95766606 |
@@ -58,10 +58,25 @@ class Pusher {
|
||||
if (await isPasswordRequired()) {
|
||||
console.log(clc.cyan('Refreshing signature...'));
|
||||
this._createdSignfile ||= await runCommand('touch', [SIGNFILE]);
|
||||
await runCommand('gpg', ['-a', '--passphrase', escapeCommandParam(this._config.gpgpass || ''), '--batch', '--pinentry-mode', 'loopback', '--detach-sign', SIGNFILE]);
|
||||
await fsp.rm(`${SIGNFILE}.asc`);
|
||||
if ('SSHKEYSIGN' in process.env)
|
||||
{
|
||||
await runCommand('ssh-keygen', [ '-Y', 'sign', '-f', path.resolve(process.env['SSHKEYSIGN'] as string), '-n', ' git', SIGNFILE]);
|
||||
}
|
||||
else
|
||||
{
|
||||
await runCommand('gpg', ['-a', '--passphrase', escapeCommandParam(this._config.gpgpass || ''), '--batch', '--pinentry-mode', 'loopback', '--detach-sign', SIGNFILE]);
|
||||
}
|
||||
if ('SSHKEYSIGN' in process.env)
|
||||
{
|
||||
await fsp.rm(`${SIGNFILE}.sig`)
|
||||
}
|
||||
else
|
||||
{
|
||||
await fsp.rm(`${SIGNFILE}.asc`)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
increment(pkg: string): Promise<void> {
|
||||
return new Promise(async (res, _) => {
|
||||
|
Reference in New Issue
Block a user