Generate icons with Github Actions
Background
Our current flow for adding icons to the design system consists of:
- Designer provides icon as SVG
- Developer adds this icon to the
assets/folder - Run script to generate React component
- Create PR
- Merge & Release
This takes time and slows us down.
Idea
Github allows uploading files through the UI so it is possible to upload an SVG directly through the website. This means a designer can handle this without having to touch git and checkout the code. When a new icon is uploaded we can trigger a Github Action to run the script to generate the component and create/update the PR with the new icon.
The new flow would look like this:
- Designer uploades icon as SVG to Github which triggers Action to generate the React component and opens a PR
- Maintainer reviews PR and merges to
main(creating a automatic release with #38)
@nlopin I see that the actions are setup and the pull requests are merged. Is this issue still relevant/do we need to setup anything additionally to what has been done?
This issue is about the idea to have some sort of "self service" for designers to add new icons to the design system. I proposed using GitHub actions to automate this. As far as I can see this has not been implemented. The only Actions I see are related to tests and release.