# Builds the Windows installer on a Windows runner (node-pty must be # compiled with MSVC, which cannot be cross-compiled from macOS) and # attaches it to the GitHub release for the pushed tag. name: Release (Windows) on: push: tags: - 'v*' workflow_dispatch: permissions: contents: write jobs: windows: runs-on: windows-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 20 # node-gyp is pinned to ^11 via package.json "overrides" — the v9 the # tree would otherwise hoist cannot detect VS2022 on current runners # (and @electron/rebuild requires the in-tree node-gyp directly). - name: Install dependencies run: npm ci - name: Build run: npm run build - name: Package and publish Windows installer run: npx electron-builder --win --publish always env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}