Skip to content

fix(www): deploy/builder #235

fix(www): deploy/builder

fix(www): deploy/builder #235

Workflow file for this run

name: Continuous Integration
on:
push:
branches: main
pull_request:
branches: main
defaults:
run:
shell: bash
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v2
- run: deno task lint
test:
name: Test
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
fail-fast: false
matrix:
runtime:
- deno
- node
- bun
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v2
- uses: actions/setup-node@v4
if: matrix.runtime == 'node'
with:
node-version: 22.x
- run: npm ci
if: matrix.runtime == 'node'
- uses: oven-sh/setup-bun@v2
if: matrix.runtime == 'bun'
- run: bun install
if: matrix.runtime == 'bun'
- run: deno task test:${{ matrix.runtime }}
preview:
name: Deploy
runs-on: ubuntu-latest
needs:
- lint
- test
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v2
- name: Run deno task deploy:setup-github-actions
run: deno task deploy:setup-github-actions
id: setup_github_actions
- uses: denoland/deployctl@v1
with:
project: ${{ steps.setup_github_actions.outputs.project }}
entrypoint: ${{ steps.setup_github_actions.outputs.entrypoint }}
import-map: ${{ steps.setup_github_actions.outputs.import_map }}
include: ${{ steps.setup_github_actions.outputs.include }}
exclude: ${{ steps.setup_github_actions.outputs.exclude }}
publish:
name: Publish
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
runs-on: ubuntu-latest
needs:
- lint
- test
- preview
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v2
- run: deno publish