Skip to content

Design tokens for Utility Menu #303

Design tokens for Utility Menu

Design tokens for Utility Menu #303

Workflow file for this run

name: Create tokens
on:
workflow_dispatch:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository.
contents: write
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: true
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install Node Dependencies
run: npm ci
# Transform Figma Tokens JSON to something Style Dictionary can read, then
# Convert tokens according to Style Dictionary config
- name: Build Style Dictionary
run: npm run tokens:build
# Add files that were created during a run, e.g. created files from Style
# Dictionary or token-transformer.
- uses: stefanzweifel/git-auto-commit-action@v4
with:
personal_token: ${{ secrets.ADD_TO_PROJECT_PAT }}
commit_message: 'feat: create tokens'