feat(tokens): update customer core color tokens #135
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Transform Figma Design Tokens | |
on: | |
push: | |
branches: | |
- figma-tokens | |
paths: | |
- packages/swirl-tokens/**/* | |
# paths-ignore: | |
# - packages/swirl-icons/dart/lib/fonts/flip-legacy-icons.ttf | |
# - packages/swirl-icons/dart/lib/fonts/swirl-icons.ttf | |
# - packages/swirl-tokens/dart/lib/styles.dark.dart | |
# - packages/swirl-tokens/dart/lib/styles.light.dart | |
jobs: | |
figma_to_style_dictionary: | |
runs-on: ubuntu-latest | |
name: Transform Figma Design Tokens to Style Dictionary format | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
name: Setup Node.js environment | |
# Transform Figma Tokens JSON to something Style Dictionary can read + generate Style Dictionary output | |
- run: cd packages/swirl-tokens && yarn && yarn build | |
# Commit generated JSON in Style Dictionary format | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: | |
"feat(tokens): update design tokens (triggered by Figma)" |