Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

バージョンアップ時にタグとリリースの作成を自動で行う #33

Merged
merged 2 commits into from
Oct 27, 2023

Conversation

tanzaku
Copy link
Collaborator

@tanzaku tanzaku commented Oct 27, 2023

changesets/actionはタグとリリースを作成する前にnpm publishを実行する前提になっており、vscode-uroborosql-fmtはリリース時にnpm publishを実行しないため、バージョンアップ時にgithub actionでタグとリリースを作成出来ていなかった。
このissueを参考に、バージョンアップ時にgithub actionでタグとリリースを自動的に作成するよう対応する。

#21

@tanzaku tanzaku merged commit 23b44c8 into main Oct 27, 2023
2 checks passed
@tanzaku tanzaku deleted the modify_changesets_config branch October 27, 2023 03:02
const tags = cp.execSync("git tag").toString().split("\n");
const changelog = readFileSync("CHANGELOG.md", "utf8");

const latestVersion = changelog.match(/^## (?<version>\d\.\d\.\d)/m);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CHANGELOG.mdから取るよりもpackage.jsonから取得する方が簡単ではないでしょうか?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

確かにそちらの方が簡単ですね!
後ほど修正しようと思います

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants