Skip to main content

Dagger Node.js SDK in CI

.github/workflows/dagger.yaml
name: dagger
on:
push:
branches: [main]

jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
with:
node-version: 18
- uses: actions/checkout@v3
- name: Install deps
run: npm ci
- name: Run Dagger pipeline
run: node index.mjs

Ensure that your package.json contains @dagger.io/dagger which can be installed using the documentation.