Convert to W3C DTCG format, read more at https://docs.tokens.studio/c… #156
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: Generate tokens on commit | |
on: | |
push: | |
paths: | |
- tokens/** | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '12' | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
- name: Install node dependencies | |
uses: bahmutov/npm-install@v1 | |
- name: Delete old tokens | |
run: npm run clean | |
- name: Build tokens | |
run: npm run build | |
- name: Commit generated output deliverables | |
id: "auto-commit-action" | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Update design tokens |