Figma to CSS Variables #6
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: Figma to CSS Variables | |
on: | |
workflow_dispatch: | |
env: | |
working-directory: frontend | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: write # for actions/checkout, peter-evans/create-pull-request | |
pull-requests: write # for peter-evans/create-pull-request | |
jobs: | |
generate: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
defaults: | |
run: | |
working-directory: ${{ env.working-directory }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/pnpm-setup | |
with: | |
working-directory: ${{ env.working-directory }} | |
- run: pnpm --filter @packages/figma-to-css-variables sync --output '../../apps/service-site/src/styles' --filter-modes "Dark,Mode 1" | |
env: | |
FIGMA_FILE_KEY: ${{ secrets.FIGMA_FILE_KEY }} | |
FIGMA_ACCESS_TOKEN: ${{ secrets.FIGMA_ACCESS_TOKEN }} | |
- uses: peter-evans/create-pull-request@v5 | |
with: | |
commit-message: "maintenance: Sync Figma to CSS Variables" | |
branch: "maintenance/sync-figma-to-css-variables" | |
delete-branch: true | |
title: "maintenance: Sync Figma to CSS Variables" |