fix: relax registerIpc cleanup assertions to check session channels only #6
Workflow file for this run
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: Windows Release | |
| on: | |
| workflow_dispatch: | |
| push: | |
| tags: | |
| - "v*" | |
| concurrency: | |
| group: windows-release-${{ github.ref }} | |
| cancel-in-progress: false | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.8.1 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Install Playwright Chromium | |
| run: pnpm --filter @hypershell/ui exec playwright install chromium | |
| - name: Workspace build | |
| run: pnpm ci:build | |
| - name: Workspace unit tests | |
| run: pnpm ci:test | |
| - name: Playwright smoke | |
| run: pnpm ci:test:e2e | |
| - name: Verify signing inputs | |
| shell: pwsh | |
| env: | |
| CSC_LINK: ${{ secrets.CSC_LINK }} | |
| CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} | |
| run: | | |
| if (-not $env:CSC_LINK) { | |
| throw "Missing CSC_LINK secret." | |
| } | |
| if (-not $env:CSC_KEY_PASSWORD) { | |
| throw "Missing CSC_KEY_PASSWORD secret." | |
| } | |
| Write-Host "Signing secrets detected." | |
| - name: Package signed Windows release | |
| shell: pwsh | |
| env: | |
| CSC_LINK: ${{ secrets.CSC_LINK }} | |
| CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} | |
| run: pnpm release:windows:signed | |
| - name: Generate release manifest | |
| run: pnpm release:manifest | |
| - name: Upload release artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: windows-release-${{ github.ref_name }} | |
| path: apps/desktop/release/** | |
| if-no-files-found: error | |
| retention-days: 30 | |
| - name: Attach Windows installer to GitHub release | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| shell: bash | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| TAG="${GITHUB_REF#refs/tags/}" | |
| EXE=$(find apps/desktop/release -name '*.exe' | head -1) | |
| if [ -z "$EXE" ]; then | |
| echo "No installer found, skipping upload" | |
| exit 0 | |
| fi | |
| echo "Uploading $EXE to release $TAG" | |
| gh release upload "$TAG" "$EXE" --clobber |