-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (37 loc) · 1.05 KB
/
sync-figma.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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.1.4
- 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@v6
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