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

Add workflow to automate versioning #962

Merged
merged 2 commits into from
Mar 26, 2025
Merged

Conversation

tbrand
Copy link
Contributor

@tbrand tbrand commented Mar 26, 2025

変更内容の説明

  • release drafter: Add changes pushed to main branch to draft release (create draft release if none exists)
  • update version: Create PR to update version in package.json to match draft release tag
  • publish release: Publish draft release when update version PR is merged

チェック項目

  • npm run lint を実行した
  • 関連するドキュメントを修正した
  • 手元の環境で動作確認済み
  • npm run cdk:test を実行しスナップショット差分がある場合は npm run cdk:test:update-snapshot を実行してスナップショットを更新した

関連する Issue

N/A

Sorry, something went wrong.

@tbrand tbrand marked this pull request as ready for review March 26, 2025 03:41
exempt-issue-labels: 'bug,dnc'
exempt-pr-labels: 'bug,dnc'
exempt-issue-labels: 'bug,dnc,new release'
exempt-pr-labels: 'bug,dnc,new release'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

To avoid deleting a branch created by update package version workflow

@@ -30,7 +30,8 @@ const useRemoteVersion = () => {
if (!packageJson) {
return false;
} else {
return version !== packageJson.data.version;
// Compare only major versions
return version.split('.')[0] !== packageJson.data.version.split('.')[0];
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since patch and minor version updates will become more frequent, update notifications will be changed to major versions only

Copy link
Collaborator

@maekawataiki maekawataiki left a comment

Choose a reason for hiding this comment

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

LGTM です!ありがとうございます。

@maekawataiki maekawataiki merged commit 16b5c7e into v4 Mar 26, 2025
@tbrand tbrand deleted the add-versioning-workflows branch March 27, 2025 07:45
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.

None yet

3 participants