Skip to content

Commit

Permalink
Update changelog actions
Browse files Browse the repository at this point in the history
  • Loading branch information
luin committed May 13, 2024
1 parent cc898ef commit c44dbe3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Generate Changelog

on:
release:
types: [published]
types: [published, created]

jobs:
changelog:
Expand Down
8 changes: 8 additions & 0 deletions scripts/changelog.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ const note = `# ${release.tagName} (${formatDate(new Date(release.publishedAt))}

await writeFile(changeLogFilePath, `${note}\n${currentChangeLog}`);

await execa("git", ["config", "--global", "user.name", "Zihua Li"]);
await execa("git", [
"config",
"--global",
"user.email",
"[email protected]",
]);

await execa("git", ["add", changelogFilename]);
await execa("git", [
"commit",
Expand Down

0 comments on commit c44dbe3

Please sign in to comment.