mirror of
https://github.com/lukaszraczylo/shared-actions.git
synced 2026-06-05 22:43:43 +00:00
e4dac8969a
- actions/checkout v4 -> v6 - actions/setup-go v5 -> v6 - actions/setup-node v4 -> v6 - actions/upload-artifact v4 -> v7 - actions/download-artifact v4 -> v8 - actions/github-script v7 -> v9 - goreleaser/goreleaser-action v6 -> v7 - docker/login-action v3 -> v4 - docker/setup-buildx-action v3 -> v4 - docker/setup-qemu-action v3 -> v4 - sigstore/cosign-installer v3 -> v4 - peter-evans/create-pull-request v7 -> v8
30 lines
699 B
YAML
30 lines
699 B
YAML
name: "Node.js Build"
|
|
description: "Setup Node.js and run build script"
|
|
|
|
inputs:
|
|
node-version:
|
|
description: "Node.js version to use"
|
|
required: false
|
|
default: "20"
|
|
build-script:
|
|
description: "Build script to run"
|
|
required: true
|
|
cache-dependency-path:
|
|
description: "Path to package-lock.json for caching"
|
|
required: false
|
|
default: ""
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: ${{ inputs.node-version }}
|
|
cache: "npm"
|
|
cache-dependency-path: ${{ inputs.cache-dependency-path }}
|
|
|
|
- name: Build frontend
|
|
shell: bash
|
|
run: ${{ inputs.build-script }}
|