Repository navigation
Merge pull request #25 from Bandwidth/chore/soften-blocker-wording #6
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: Playground | |
| on: | |
| push: | |
| branches: ["main"] | |
| workflow_dispatch: | |
| concurrency: | |
| group: playground-release | |
| cancel-in-progress: false | |
| jobs: | |
| release: | |
| name: Publish | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: "22" | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build playground | |
| run: npm run playground:build | |
| - name: Publish playground.html to rolling release | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: | | |
| if gh release view playground-latest >/dev/null 2>&1; then | |
| gh release upload playground-latest dist/playground.html --clobber | |
| else | |
| gh release create playground-latest dist/playground.html \ | |
| --title "Migration Preflight Playground (latest)" \ | |
| --notes "Auto-published from main on every push. Download playground.html and double-click — no install, no server, works offline." \ | |
| --latest=false | |
| fi |