diff options
| -rw-r--r-- | .github/workflows/build-unocss.yml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/.github/workflows/build-unocss.yml b/.github/workflows/build-unocss.yml new file mode 100644 index 00000000..b6768411 --- /dev/null +++ b/.github/workflows/build-unocss.yml @@ -0,0 +1,35 @@ +name: Build UnoCSS + +on: + push: + +jobs: + build-uno: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 + with: + version: 9 + + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: pnpm + + - name: Install deps + run: pnpm install --frozen-lockfile + + - name: Build UnoCSS + run: pnpm run build:uno:prod + + - name: Commit if changed + run: | + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + + git add . + git commit -m "chore(unocss): rebuild styles" || exit 0 + git push |
