Design tokens for Tooltip component #305
Workflow file for this run
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: 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' |