add inactivity timeout on client disconnect (#3) #3
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: Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| release: | |
| types: [published] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| id-token: write | |
| concurrency: | |
| group: release-${{ github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| publish-npm: | |
| if: github.repository == 'browserbase/ModCDP' | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| environment: npm | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| registry-url: https://registry.npmjs.org | |
| package-manager-cache: false | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm run build | |
| - name: Prepare alpha version | |
| if: github.event_name == 'push' | |
| run: | | |
| ALPHA_VERSION=$(node -e 'const version = require("./package.json").version; const [core] = version.split("-"); const commit = (process.env.GITHUB_SHA || "").slice(0, 7); process.stdout.write(`${core}-alpha.${commit}`)') | |
| npm version "$ALPHA_VERSION" --no-git-tag-version | |
| - name: Publish alpha | |
| if: github.event_name == 'push' | |
| run: npm publish --tag alpha | |
| - name: Publish stable | |
| if: github.event_name != 'push' | |
| run: npm publish |