0.7.6: Drop /x/ publication. JSR only now (#28) #140
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: | |
| push: | |
| branches: [ main ] | |
| pull_request: {} | |
| permissions: | |
| contents: read | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| name: Check w/ ${{ matrix.deno-version }} | |
| strategy: | |
| matrix: | |
| deno-version: | |
| - v1.41 | |
| - v1.43 | |
| - v1.45 | |
| - v2.0 | |
| - v2.1 | |
| - v2.2 | |
| - v2.3 | |
| - canary | |
| fail-fast: false # run each branch to completion | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v5 | |
| - name: Use Deno ${{ matrix.deno-version }} | |
| uses: denoland/setup-deno@v2 | |
| with: | |
| deno-version: ${{ matrix.deno-version }} | |
| - name: Cache Deno deps | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/deno | |
| key: denodir/${{ matrix.deno-version }}-${{ hashFiles('deno.lock') }} | |
| - name: 'Possibly reset lockfile' | |
| run: deno install || rm deno.lock | |
| - name: Check mod.ts | |
| run: time deno check --unstable-http mod.ts | |
| - name: Check demo.ts | |
| run: time deno check demo.ts | |
| - name: Check tunnel-beta/examples/ws-exec-poc.ts | |
| run: time deno check --unstable-net tunnel-beta/examples/ws-exec-poc.ts | |
| check-publish: | |
| runs-on: ubuntu-latest | |
| name: Check JSR Publish | |
| steps: | |
| - uses: denoland/setup-deno@v2 | |
| - uses: actions/checkout@v5 | |
| - name: Cache Deno deps | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/deno | |
| key: denodir-${{ hashFiles('deno.lock') }} | |
| - name: Check publish rules | |
| run: deno publish --dry-run --allow-dirty | |
| publish: | |
| runs-on: ubuntu-latest | |
| name: JSR Publish | |
| needs: | |
| - check | |
| - check-publish | |
| if: github.event_name == 'push' | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - uses: denoland/setup-deno@v2 | |
| - uses: actions/checkout@v5 | |
| - name: Cache Deno deps | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/deno | |
| key: denodir-${{ hashFiles('deno.lock') }} | |
| - name: Publish now | |
| run: deno publish |