feat(router): refactor vite plugin to use named exports in virtual mo… #50
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: Continuous Integration | |
| on: | |
| push: | |
| branches: ["main"] | |
| jobs: | |
| install: | |
| name: Install dependencies | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| - name: Cache node_modules | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| node_modules | |
| packages/*/node_modules | |
| apps/*/node_modules | |
| key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }} | |
| - name: Install dependencies | |
| run: bun install | |
| build-test-publish: | |
| name: Build, Test & Publish | |
| runs-on: ubuntu-latest | |
| needs: install | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| - name: Restore node_modules | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| node_modules | |
| packages/*/node_modules | |
| apps/*/node_modules | |
| key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }} | |
| - name: Build libs | |
| run: bun run build | |
| - name: Test | |
| run: bun run test | |
| - name: Publish nightly release | |
| run: | | |
| echo "gitdir: $(pwd)/.git" > packages/ilha/.git | |
| bunx pkg-pr-new publish './packages/*' | |
| - name: Upload build artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: lib-dist | |
| path: packages/*/dist/ | |
| retention-days: 1 | |
| docs: | |
| name: Build docs | |
| runs-on: ubuntu-latest | |
| needs: build-test-publish | |
| permissions: | |
| pages: write | |
| id-token: write | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| - name: Restore node_modules | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| node_modules | |
| packages/*/node_modules | |
| apps/*/node_modules | |
| key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }} | |
| - name: Download build artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: lib-dist | |
| path: packages/ | |
| - name: Build Website | |
| run: bun run build | |
| working-directory: apps/website | |
| - name: Build docs | |
| run: bun run docs:build | |
| - name: Move Docs build | |
| run: mv dist/ apps/website/dist/docs/ | |
| - name: Upload static files as artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: apps/website/dist/ | |
| - name: Deploy to GitHub Pages | |
| uses: actions/deploy-pages@v4 |