Skip to content

Docgen Primer Brand #194

Docgen Primer Brand

Docgen Primer Brand #194

Workflow file for this run

name: Docgen Primer Brand
on:
workflow_dispatch:
push:
branches:
- main
schedule:
- cron: '0 0 * * *' # Every day at midnight UTC time
jobs:
generate-components-json:
name: Generate Primer Brand components json
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FIGMA_API_TOKEN: ${{ secrets.FIGMA_API_TOKEN }}
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Setup Node.js 18.x
uses: actions/setup-node@v2
with:
node-version: 18.x
- name: Install Dependencies
run: npm i
- name: Generate component documentation JSON
run: npm run docgen:brand
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Update packages/brand/generated/components.json"