Skip to content

Commit

Permalink
Add Design Tokens Github action
Browse files Browse the repository at this point in the history
  • Loading branch information
taysea committed Feb 14, 2024
1 parent cc42c7c commit 36f6ddd
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/sync-tokens-to-figma.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Sync tokens to Figma
on:
push:
branches:
- design-tokens

jobs:
sync-tokens-to-figma:
runs-on: ubuntu-latest
steps:
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '18.16.0'

- name: Set NPM version
run: npm install -g [email protected]

- name: Clone repo
uses: actions/checkout@v3

- name: Install dependencies
run: npm install
working-directory: design-tokens

- name: Sync tokens to Figma file
run: npm run sync-tokens-to-figma
working-directory: design-tokens
env:
FILE_KEY: ${{ secrets.GH_ACTION_FIGMA_FILE_KEY }}
PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_ACTION_VARIABLES_SYNC_FIGMA_TOKEN }}

0 comments on commit 36f6ddd

Please sign in to comment.