Skip to content

feat(www): add custom builder #182

feat(www): add custom builder

feat(www): add custom builder #182

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:preview
run: |
DENO_DEPLOY_TOKEN=$(curl -s -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=api://AzureADTokenExchange" | jq -r .value)
deno task deploy:preview --token="GitHubOIDC $DENO_DEPLOY_TOKEN"
publish:
name: Publish
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
runs-on: ubuntu-latest
needs:
- lint
- test
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v2
- run: deno publish