Skip to main content

Deno

Run the following command to run the pre-built Deno Pipeline in your project to deploy to Deno Deploy:

fluentci run deno deploy

Environment variables (Deno Deploy)

VariableDescriptionDefault
DENO_PROJECTYour project name
NO_STATICDisable static assetsfalse
EXCLUDEExclude files from deploy
DENO_DEPLOY_TOKENYour Deno Deploy token
DENO_MAIN_SCRIPTYour main scriptmain.tsx

Programmatic usage

You can also use this pipeline programmatically:

import { fmt, lint, test } from "jsr:@fluentci/deno";

await fmt();
await lint();
await test();

CI/CD integrations

The following examples show how to integrate FluentCI with popular CI providers to build and test Deno applications:

ci.yml
name: ci
on:
push:
branches:
- main
jobs:
tasks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Fluent CI
uses: fluentci-io/setup-fluentci@v5
with:
wasm: true
plugin: deno
args: |
fmt
lint
test
compile -A --output myapp --target x86_64-unknown-linux-gnu main.ts