Docgen Primer Brand #200
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: 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" |