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 changeset auto generate job to workflow #1676

Merged

Conversation

yangwooseong
Copy link
Collaborator

@yangwooseong yangwooseong commented Oct 15, 2023

Self Checklist

  • I wrote a PR title in English and added an appropriate label to the PR.
  • I wrote the commit message in English and to follow the Conventional Commits specification.
  • I added the changeset about the changes that needed to be released. (or didn't have to)
  • I wrote or updated documentation related to the changes. (or didn't have to)
  • I wrote or updated tests related to the changes. (or didn't have to)
  • I tested the changes in various browsers. (or didn't have to)
    • Windows: Chrome, Edge, (Optional) Firefox
    • macOS: Chrome, Edge, Safari, (Optional) Firefox

Related Issue

Fixes #863

Summary

  • 피그마 플러그인이 생성하는 아이콘 업데이트 pr에 아이콘 변경 내역을 바탕으로 changeset를 생성합니다.

Details

  • changeset 내부 코드를 보면, 파일의 경로와 확장자를 보고 파일이 changeset 인지를 확인하고, 파일안에 yaml front matter 가 있다면 거기서 version 을 파싱하고 있습니다. 따라서 changeset cli 를 통하지 않더라도, changeset이 기대하는 형태로 파일을 만든다면 인식이 잘 될 것으로 생각됩니다.

  • changeset 양식은 다음과 같습니다. 기존에 만들고 있는 형태를 유지했습니다.

// .changeset/icon-update-1697341995107.md (update 뒤에 오는 값은 Date.valueOf())
---
"@channel.io/bezier-icons": minor
---

Icon Update

**CHANGE**

- all.svg

**DELETE**
- home.svg

**ADD**
- people.svg
- chevron-right.svg
  • 테스트 코드를 추가했고, 개인 레포에서 테스트했을 때 잘 만들어지는 것을 확인했습니다. (#)

Breaking change? (Yes/No)

  • No

References

@yangwooseong yangwooseong added the enhancement Issues or PR related to making existing features better label Oct 15, 2023
@yangwooseong yangwooseong self-assigned this Oct 15, 2023
@changeset-bot
Copy link

changeset-bot bot commented Oct 15, 2023

🦋 Changeset detected

Latest commit: a61c7e5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@channel.io/bezier-icons Minor
bezier-figma-plugin Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@yangwooseong yangwooseong changed the title Add changeset generate job to workflow add changeset auto generate job to workflow Oct 15, 2023
@codecov
Copy link

codecov bot commented Oct 15, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (18e9213) 87.18% compared to head (4b25ec0) 87.18%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1676   +/-   ##
=======================================
  Coverage   87.18%   87.18%           
=======================================
  Files         281      281           
  Lines        3903     3903           
  Branches      821      821           
=======================================
  Hits         3403     3403           
  Misses        425      425           
  Partials       75       75           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@yangwooseong yangwooseong force-pushed the feat/add-changeset-generate-job branch from bf98f52 to eb8a2cc Compare October 16, 2023 01:33
@yangwooseong yangwooseong force-pushed the feat/add-changeset-generate-job branch from eb8a2cc to 2ecbb5c Compare October 16, 2023 01:33
@github-actions
Copy link
Contributor

Chromatic Report

🚀 Congratulations! Your build was successful!

@yangwooseong yangwooseong marked this pull request as ready for review October 16, 2023 01:58
Comment on lines 10 to 12
M: '**CHANGE**',
A: '**ADD**',
D: '**DELETE**',
Copy link
Contributor

Choose a reason for hiding this comment

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

마이너: 이 부분도 테이블과 같은 문구를 사용하면 더 일관적일 거 같아요! (대/소문자는 안 맞춰도 될 듯)

const statusByKey = {
  M: 'modified',
  A: 'added',
  D: 'deleted',
}

"@channel.io/bezier-icons": minor
---

Icon Update
Copy link
Contributor

Choose a reason for hiding this comment

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

마이너: Update icons

Copy link
Contributor

@sungik-choi sungik-choi left a comment

Choose a reason for hiding this comment

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

💯 #863 이 해결될 지 몰랐네요..👍

@yangwooseong yangwooseong merged commit f60440b into channel-io:main Oct 17, 2023
@yangwooseong yangwooseong deleted the feat/add-changeset-generate-job branch October 17, 2023 04:08
sungik-choi pushed a commit that referenced this pull request Oct 17, 2023
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @channel.io/bezier-icons@0.14.0

### Minor Changes

- Update icons
([#1672](#1672)) by
@Jamie-channel

    **ADD**

    -   ai.svg
    -   limit.svg
    -   call-push-off-filled.svg
    -   call-push-on-filled.svg

    **CHANGE**

    -   goal-off.svg
    -   goal.svg

- Add changeset auto generating job to workflow
([#1676](#1676)) by
@yangwooseong

## bezier-figma-plugin@0.4.6

### Patch Changes

-   Updated dependencies
    -   @channel.io/bezier-icons@0.14.0
    -   @channel.io/bezier-react@1.15.1

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@yangwooseong yangwooseong added the bezier-figma-plugin Issue or PR related to bezier-figma-plugin label Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bezier-figma-plugin Issue or PR related to bezier-figma-plugin enhancement Issues or PR related to making existing features better
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Enhance the bezier-figma-plugin
2 participants