mirror of
https://github.com/changesets/action
synced 2026-10-26 16:39:56 +08:00
Remove setup-git-user in favor of setting fallback only when identity is missing (#688)
* Experiment with skipping setup-git-user more often * drop setup-git-user * fix tests
This commit is contained in:
@@ -164,6 +164,10 @@ export async function runPublish({
|
||||
cwd,
|
||||
}: PublishOptions): Promise<PublishResult> {
|
||||
const { octokit } = github;
|
||||
// Changesets creates annotated tags locally, including when the action pushes those tags through the GitHub API.
|
||||
// It might also be important for custom publish scripts to have a valid git user configured.
|
||||
await github.ensureGitUser();
|
||||
|
||||
let changesetPublishOutput: ExecOutput;
|
||||
const outputFile = path.join(
|
||||
process.env.RUNNER_TEMP ?? (await fs.realpath(os.tmpdir())),
|
||||
|
||||
Reference in New Issue
Block a user