21 lines
417 B
YAML
21 lines
417 B
YAML
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 }}
|