feat(decimal): add example project with Vite configuration and TypeSc… #52
This file contains hidden or 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: Sync Generated References | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - packages/hikkaku/src/blocks/** | |
| - packages/skill/scripts/build-blocks.ts | |
| - packages/skill/package.json | |
| - package.json | |
| - bun.lock | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| sync: | |
| if: github.actor != 'github-actions[bot]' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Restore Bun/MoonBit/Turbo caches | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.bun/install | |
| ~/.moon | |
| ~/.turbo | |
| **/.turbo | |
| key: ${{ runner.os }}-bun-moonbit-turbo-${{ hashFiles('bun.lock', 'turbo.json', 'package.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-bun-moonbit-turbo- | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Generate references | |
| run: bun run ref:build | |
| - name: Commit generated references | |
| run: | | |
| if git diff --quiet; then | |
| echo "No generated changes" | |
| exit 0 | |
| fi | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add docs/reference/blocks packages/skill/hikkaku/rules/blocks | |
| git commit -m "chore: sync generated block references" | |
| git push |