Skip to content

maintenance: add workflow for figma to css variables #3

maintenance: add workflow for figma to css variables

maintenance: add workflow for figma to css variables #3

name: Figma to CSS Variables
on:
workflow_dispatch:
pull_request:
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 gen --output '../../apps/service-site/src/styles' --filter-modes "Dark,Light,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"