feat(bezier-icons): add icons.json file #29
Workflow file for this run
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 icon files from icons.json file | |
on: | |
push: | |
branches: | |
- icon-update-* | |
paths: | |
- packages/bezier-icons/icons.json | |
jobs: | |
generate-svg: | |
name: Generate icon files from icons.json file | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get Yarn cache path | |
id: yarn-cache | |
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.17.1 | |
# - name: Load Yarn cache | |
# uses: actions/cache@v3 | |
# with: | |
# path: ${{ steps.yarn-cache.outputs.dir }} | |
# key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
# restore-keys: | | |
# ${{ runner.os }}-yarn- | |
# - name: Install Dependencies | |
# run: | | |
# yarn install | |
- name: Git Config | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "ch-builder" | |
- name: Generate Svg files from icons.json | |
run: | | |
yarn workspace @channel.io/bezier-icons generate-icon-files | |
git add . | |
git commit -m "feat(bezier-icons): generate icon files from icons.json" | |
- name: Delete icons.json files | |
run: | | |
git rm packages/bezier-icons/icons.json | |
git commit -m 'feat(bezier-icons): remove icons.json' | |
git push |