Pipery npm CI#

Reusable GitHub Action for a complete npm/Node.js CI pipeline with structured logging via Pipery.

GitHub Marketplace Version License: MIT

Usage#

name: CI
on: [push, pull_request]

jobs:
  ci:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: pipery-dev/pipery-npm-ci@v1
        with:
          project_path: .
          npm_token: ${{ secrets.NPM_TOKEN }}
          github_token: ${{ secrets.GITHUB_TOKEN }}

Pipeline steps#

StepToolSkip input
SASTnjsscanskip_sast
SCAnpm audit / yarn auditskip_sca
LintESLintskip_lint
Buildnpm run build / yarn buildskip_build
Testnpm test / yarn testskip_test
VersionSemantic version bumpskip_versioning
Packagenpm packskip_packaging
Releasenpm publish + SHA dist-tagskip_release
ReintegrateMerge back to default branchskip_reintegration

Inputs#

NameDefaultDescription
project_path.Path to the project source tree.
config_file.github/pipery/config.yamlPath to Pipery config file.
node_version20Node.js version to use.
package_managerautoPackage manager: auto, npm, or yarn.
tests_path``Path or glob passed to the test runner after --.
version_bumppatchVersion bump type: patch, minor, or major.
npm_token``npm registry auth token for publishing.
github_token``GitHub token for reintegration.
log_filepipery.jsonlPath to the JSONL structured log file.
skip_sastfalseSkip the SAST step.
skip_scafalseSkip the SCA step.
skip_lintfalseSkip the lint step.
skip_buildfalseSkip the build step.
skip_testfalseSkip the test step.
skip_versioningfalseSkip the versioning step.
skip_packagingfalseSkip the packaging step.
skip_releasefalseSkip the release step.
skip_reintegrationfalseSkip the reintegration step.

About Pipery#

Pipery is an open-source CI/CD observability platform. Every step script runs under psh (Pipery Shell), which intercepts all commands and emits structured JSONL events — giving you full visibility into your pipeline without any manual instrumentation.

Development#

# Run the action locally against test-project/
pipery-actions test --repo .

# Regenerate docs
pipery-actions docs --repo .

# Dry-run release
pipery-actions release --repo . --dry-run