This example GitHub repository helps you pull design tokens from several Specify repositories.
It contains a GitHub Action that automatically pulls design tokens from Specify. If your Specify and your GitHub repositoy differ, a new PR will be opened containing your updated design tokens.
Our GitHub Action is in the file update-design-tokens.yaml
.
Let's summarize this workflow:
- We install the Specify CLI
- We pull design tokens from several Specify repositories from the same example organization
@acme-inc
:General
,Light-Theme
andDark-Theme
. - We create a Pull Request on a new branch called
specify
Please make sure you have:
- Several source Specify repositories containing your design tokens
- A Specify Personal Access Token
- Set a new repository secret called
SPECIFY_TOKEN
containing your Specify Personal Access Token in your GitHub repository: Settings > Secrets > Actions - Change the Specify repositories called in the GitHub Action
Don't forget to enable GitHub workflows in your GitHub repository.