Skip to content

Merge pull request #714 from omnifed/dependabot/npm_and_yarn/docs/esl… #186

Merge pull request #714 from omnifed/dependabot/npm_and_yarn/docs/esl…

Merge pull request #714 from omnifed/dependabot/npm_and_yarn/docs/esl… #186

Workflow file for this run

name: Sync Figma variables to tokens
on:
push:
branches:
- main
env:
CI: true
FIGMA_ACCESS_TOKEN: ${{ secrets.FIGMA_ACCESS_TOKEN }}
jobs:
sync-figma-to-tokens:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: oven-sh/setup-bun@v2
- uses: pnpm/action-setup@v4
with:
version: 9.12.3
- uses: actions/setup-node@v4
with:
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Sync variables in Figma file to tokens
run: pnpm run figma:sync
working-directory: ./figma
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
commit-message: 'chore: update tokens from Figma'
title: '[chore]: update tokens from Figma'
body: 'This PR updates the latest tokens from Figma.'
branch: chore/update-tokens
branch-suffix: timestamp