mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-08-28 05:25:25 +00:00
Some checks are pending
CodeQL / Analyze (javascript-typescript) (push) Waiting to run
CodeQL / Analyze (python) (push) Waiting to run
Gitleaks / gitleaks (push) Waiting to run
Publish / Classify release event (push) Waiting to run
Publish / RC guard (marker + release-PR skip) (push) Blocked by required conditions
Publish / ci (push) Blocked by required conditions
Publish / Publish to npm (push) Blocked by required conditions
Publish / Build & Push RC Docker images (push) Blocked by required conditions
Scorecard / Scorecard analysis (push) Waiting to run
Trivy Image Scan / Trivy (gitnexus-cli) (push) Waiting to run
Trivy Image Scan / Trivy (gitnexus-web) (push) Waiting to run
33 lines
818 B
YAML
33 lines
818 B
YAML
name: Setup GitNexus
|
|
description: Setup Node.js 22, install dependencies, and optionally build
|
|
|
|
inputs:
|
|
build:
|
|
description: Whether to run npm run build after install
|
|
required: false
|
|
default: 'false'
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
|
with:
|
|
node-version: 22
|
|
cache: npm
|
|
cache-dependency-path: gitnexus/package-lock.json
|
|
|
|
- name: Build gitnexus-shared
|
|
run: npm install && npm run build
|
|
shell: bash
|
|
working-directory: gitnexus-shared
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
shell: bash
|
|
working-directory: gitnexus
|
|
|
|
- name: Build
|
|
if: ${{ inputs.build == 'true' }}
|
|
run: npm run build
|
|
shell: bash
|
|
working-directory: gitnexus
|