fix(release): repair next npm release workflow (#122)

* fix(ci): run rc releases from next branch

* fix(context): allow release git askpass env

* fix(release): make npm publish noninteractive

* fix(release): use npm trusted publishing

* fix(release): tolerate npm propagation in smoke

* docs(release): document trusted publishing auth
This commit is contained in:
Andrey Avtomonov 2026-05-17 01:41:07 +02:00 committed by GitHub
parent de72a10ffb
commit d3d58a279b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 232 additions and 40 deletions

View file

@ -3,6 +3,7 @@ import { type SimpleGit, simpleGit } from 'simple-git';
const SANITIZED_GIT_ENV_KEYS = [
'EDITOR',
'GIT_ALTERNATE_OBJECT_DIRECTORIES',
'GIT_ASKPASS',
'GIT_CONFIG',
'GIT_CONFIG_COUNT',
'GIT_CONFIG_GLOBAL',
@ -31,5 +32,5 @@ export function createSimpleGit(baseDir?: string): SimpleGit {
for (const key of SANITIZED_GIT_ENV_KEYS) {
delete env[key];
}
return simpleGit(baseDir).env(env);
return simpleGit({ baseDir, unsafe: { allowUnsafeAskPass: true } }).env(env);
}