feat(tui): add project path command palette flow #46
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: Publish npm package | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - "v*" | |
| paths: | |
| - "apps/tui/**/*.ts" | |
| - "apps/tui/**/*.tsx" | |
| - "apps/tui/**/*.js" | |
| - "apps/tui/**/*.mjs" | |
| - "apps/tui/**/*.json" | |
| - "apps/tui/bin/**" | |
| - "apps/server/**/*.ts" | |
| - "apps/server/**/*.tsx" | |
| - "apps/server/**/*.js" | |
| - "apps/server/**/*.mjs" | |
| - "apps/server/**/*.json" | |
| - "apps/web/**/*.ts" | |
| - "apps/web/**/*.tsx" | |
| - "apps/web/**/*.js" | |
| - "apps/web/**/*.mjs" | |
| - "apps/web/**/*.json" | |
| - "apps/web/**/*.css" | |
| - "packages/**/*.ts" | |
| - "packages/**/*.tsx" | |
| - "packages/**/*.js" | |
| - "packages/**/*.mjs" | |
| - "packages/**/*.json" | |
| - "scripts/**/*.ts" | |
| - "scripts/**/*.js" | |
| - "scripts/**/*.mjs" | |
| - "scripts/**/*.json" | |
| - "package.json" | |
| - "bun.lock" | |
| - ".github/workflows/publish-npm.yml" | |
| concurrency: | |
| group: publish-npm-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v5 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: "24" | |
| registry-url: "https://registry.npmjs.org" | |
| package-manager-cache: false | |
| - name: Set up Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: "1.3.9" | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Check formatting | |
| run: bun fmt:check | |
| - name: Lint | |
| run: bun lint | |
| - name: Typecheck | |
| run: bun typecheck | |
| - name: Prepare dev publish version | |
| if: github.ref_type == 'branch' | |
| run: node scripts/prepare-tui-publish-version.mjs dev | |
| - name: Verify tagged release version | |
| if: github.ref_type == 'tag' | |
| run: node scripts/prepare-tui-publish-version.mjs tag | |
| - name: Publish dev dist-tag | |
| if: github.ref_type == 'branch' | |
| working-directory: apps/tui | |
| run: npm publish --tag dev | |
| - name: Publish latest release | |
| if: github.ref_type == 'tag' | |
| working-directory: apps/tui | |
| run: npm publish |