MCPcopy Create free account
hub / github.com/fontsource/fontsource / doGitOperations

Function doGitOperations

packages/publish/src/publish.ts:44–58  ·  view source on GitHub ↗
({ name, config, bumped }: DoGitOptions)

Source from the content-addressed store, hash-verified

42let hasRun = false;
43
44const doGitOperations = async ({ name, config, bumped }: DoGitOptions) => {
45 if (hasRun) return;
46 hasRun = true;
47
48 // Stage all files
49 await gitAdd();
50
51 // Commit changes
52 const commitMessage = getCommitMessage(config, bumped);
53 await gitCommit(commitMessage);
54
55 // Push changes
56 await gitRemoteAdd(name);
57 await gitPush();
58};
59
60interface PublishObject extends BumpObject {
61 error?: unknown;

Callers 2

packPublishFunction · 0.85
publishPackagesFunction · 0.85

Calls 5

gitAddFunction · 0.90
getCommitMessageFunction · 0.90
gitCommitFunction · 0.90
gitRemoteAddFunction · 0.90
gitPushFunction · 0.90

Tested by

no test coverage detected