Skip to content

Vite Builder

Build GitHub Actions using Vite.

Installation

bash
pnpm add -D actions-kit @actions-sdk/vite-builder
bash
yarn add -D actions-kit @actions-sdk/vite-builder
bash
npm install -D actions-kit @actions-sdk/vite-builder
bash
bun install -D actions-kit @actions-sdk/vite-builder

Set the builder in your actions-kit.config.ts file:

actions-kit.config.ts
ts
import { defineConfig } from "actions-kit/config";
import vite from "@actions-sdk/vite-builder";

export default defineConfig({
  builder: vite({
    ...viteOptions,
  }),
});

Customizing Vite

You can customize the Vite options by passing the options directly into the vite function.

actions-kit.config.ts
ts
import { defineConfig } from "actions-kit/config";
import vite from "@actions-sdk/vite-builder";

export default defineConfig({
  builder: vite({
    plugins: [],
  }),
});