This commit is contained in:
Timo Behrendt
2025-08-18 09:10:58 +02:00
parent 47115304e8
commit eb9434e1e3
2 changed files with 53 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
name: Run NodeJS script with package cache
on:
workflow_call:
inputs:
script:
description: Path to the Node.js script to run
type: string
required: true
jobs:
run-node:
name: Run NodeJS script
runs-on: ubuntu-latest
steps:
- uses: ./.gitea/workflows/setup_node.yaml
with:
node-version-file: .nvmrc
- run: npm run ${{ inputs.script }}