Files
gitea-actions/node
deac 9df18983c3 STAT-133: Add NPM_TOKEN support to node and test/npm actions for private registry auth
npm ci fails with E401 when a consuming repo's package-lock.json pins a
package to the private Gitea npm registry, since these composite actions
never write an .npmrc or set a registry auth token. Add an optional
NPM_TOKEN input that writes .npmrc before install; existing consumers that
don't pass it are unaffected.
2026-09-17 11:48:24 -04:00
..

Node Build

Description

Install dependencies, build, and upload a build artifact

Inputs

name description required default
INSTALL_CMD

Install command

false npm ci
BUILD_SCRIPT

npm script to run for the main build

false build:stage
EXTRA_BUILD_SCRIPT

Optional additional npm script to run after the main build

false ""
ARTIFACT_NAME

Name to give the uploaded artifact

false dist
ARTIFACT_PATH

Path to upload as the artifact

false dist
COPY_PRISMA_ENGINE

Copy the Prisma query engine binaries into the build directory

false false
WORKING_DIRECTORY

Working directory for install, build, and artifact steps

false .
UPLOAD_ARTIFACT

Whether to upload the build artifact

false true
NPM_TOKEN

Auth token for the private Gitea npm registry (@stat-tackler scope). Leave empty if the repo installs no private packages.

false ""

Runs

This action is a composite action.