Docgen Primer Web #650
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 Web | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: '0 0 * * *' # Every day at midnight UTC time | |
jobs: | |
generate-components-json: | |
name: Generate Primer Web 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:web | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: "Update packages/web/generated/components.json" |