Skip to content

EMULSIF-242: Convert Status to support SDC #226

EMULSIF-242: Convert Status to support SDC

EMULSIF-242: Convert Status to support SDC #226

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: 16.13
- 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'