Skip to content

Commit

Permalink
Update build-figma-tokens.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vern-gora committed Nov 4, 2024
1 parent 8f3cf21 commit 6fab880
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build-figma-tokens.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,14 @@ jobs:
- name: Transform Figma tokens
run: npx token-transformer figma-tokens/input/tokens.json figma-tokens/transformed-tokens/tokens-transformed.json

- name: Clean transformed tokens
run: rm -f figma-tokens/transformed-tokens/tokens-transformed.json

# Run script for Style Dictionary, convert JSON to SCSS
- name: Build Figma tokens to SCSS
run: npm run build-tokens

# Create or update the `update-figma-tokens` branch
# Create or update the `issue-995-design-tokens` branch
- name: Create or update branch
run: |
git config user.name "github-actions[bot]"
Expand All @@ -40,7 +43,7 @@ jobs:
git add stories/assets/scss/figma-scss/_figma-variables.scss
git commit -m "Save changes in the branch" || echo "No changes to commit"
# Push changes to `update-figma-tokens` branch
# Push changes to `issue-995-design-tokens` branch
- name: Push changes
run: |
git push origin ${{ github.ref_name }} || echo "No changes to push"
Expand Down

0 comments on commit 6fab880

Please sign in to comment.