Update to version: 3.1.0 #25
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: 'Update Fonts' | |
on: | |
push: | |
branches: | |
- workflow | |
jobs: | |
update-fonts: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: latest | |
- uses: actions/cache@v3 | |
with: | |
path: node_modules | |
key: node_modules | |
- run: yarn | |
- run: | | |
npx tsx ./src/fetch-list.ts | |
npx tsx ./src/download-fonts.ts | |
npx tsx ./src/generate-css.ts | |
- run: | | |
git config user.email [email protected] | |
git config user.name Namorzyny | |
git checkout --orphan master | |
git add . | |
git commit -m "Update to version: `node -p "require('./package.json').version"`" || echo 'Nothing was commited.' | |
git push -f origin master |