Use Figmagic to retrieve tokens, graphics, and/or React components from a Figma document.
You need to set two secrets: FIGMA_URL
and FIGMA_TOKEN
. Read more in the Figmagic documentation about how to get them. Refer to GitHub's documentation for how to set them.
Figmagic will pick up desired configuration from your figmagic.json
file, but if this file does not exist Figmagic will create ("init") a base configuration file to use.
Figma document URL (full path) or document ID.
Personal Figma API token.
No optional inputs/outputs are provided.
This Action uses two secrets: FIGMA_URL
and FIGMA_TOKEN
, as described above.
None.
on: [push]
jobs:
figmagic:
runs-on: ubuntu-latest
name: Use Figmagic
steps:
- uses: actions/checkout@v2
- id: figmagic
uses: mikaelvesavuori/figmagic-action@v1.0.0
with:
figma-url: ${{ secrets.FIGMA_URL }}
figma-token: ${{ secrets.FIGMA_TOKEN }}