Skip to content
npm-auto-build

Menu

Type to search the docs.

↑ ↓ move · Enter open · Esc close

GitHub Action · v3 in development · four modes

Build it, then commit the output.

A GitHub Action that runs your project's build on a push and commits the build output for you, so nobody commits dist/ by hand. Your build runs without the write token.

uses: miguelcolmenares/npm-auto-build@v3

01 · Why

Why npm-auto-build

mode: commit

Commit the build output

Builds, then commits the build output to the checked out branch. The default mode, and the original behavior of the action.

mode: check

Fail a stale build

Builds, then fails when the committed build output is stale. Pushes nothing and reads no token, so it also works for pull requests from forks.

mode: pr

Keep one pull request

Builds, then commits the output to a branch of its own and keeps one pull request up to date, for a branch that does not accept direct pushes.

mode: build

Only build

Builds and checks that the output exists. Pushes nothing, needs no write permission and reads no token.

02 · Docs

Docs

The four modes, the reference, recipes, the changes from v2 and the security documents.

All docs →

03 · Examples

Examples

The workflow files of the examples directory.

All examples →

Start using npm-auto-build

uses: miguelcolmenares/npm-auto-build@v3