Skip to content

chore: add icon category #399

chore: add icon category

chore: add icon category #399

Workflow file for this run

name: Build Font
on:
push:
branches-ignore:
- 'master'
- 'develop'
jobs:
build-font:
name: Build Font
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
cache: 'npm'
node-version: 18.x
- name: Install
run: |
npm ci
- name: Build assets
run: |
npm run build --workspaces
- name: Compare artifacts
run: |
HAS_CHANGES=0
HAS_NEW=0
git diff --exit-code --quiet -- packages/ -- ":(exclude)packages/*/dist/*" || HAS_CHANGES=1
[[ $(git ls-files --others --exclude-standard packages/) ]] && HAS_NEW=1
echo "HAS_CHANGES=$HAS_CHANGES" >> $GITHUB_ENV
echo "HAS_NEW=$HAS_NEW" >> $GITHUB_ENV
- name: Setup git user
run: |
git config user.name "kendo-bot"
git config user.email "[email protected]"
- name: Push changes to GitHub
if: ${{ env.HAS_CHANGES == 1 || env.HAS_NEW == 1 }}
env:
GH_TOKEN: ${{ github.token }}
run: |
echo "Updating font."
git add packages/
git commit -m "feat: generate icons metadata"
git push