Add Windows installation instructions #1
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: CI | |
| on: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Type check | |
| run: bun run tsc --noEmit | |
| - name: Test build | |
| run: bun build cli.ts --compile --outfile nanobanana | |
| - name: Test CLI | |
| run: ./nanobanana --help | |
| version-check: | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'pull_request' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Check version bump | |
| run: | | |
| BASE_VERSION=$(git show origin/main:package.json | jq -r '.version') | |
| PR_VERSION=$(jq -r '.version' package.json) | |
| if [ "$BASE_VERSION" = "$PR_VERSION" ]; then | |
| echo "::warning::Version not bumped. Current: $BASE_VERSION" | |
| echo "Consider bumping the version in package.json if this PR includes user-facing changes." | |
| else | |
| echo "Version bumped: $BASE_VERSION -> $PR_VERSION" | |
| fi |