feat: whyrating - initial project from turbostarter boilerplate
This commit is contained in:
32
tooling/github/setup/action.yml
Normal file
32
tooling/github/setup/action.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
name: CI / Setup
|
||||
description: Common setup steps for Github Actions
|
||||
|
||||
inputs:
|
||||
node-version:
|
||||
description: "Node.js version"
|
||||
required: true
|
||||
default: "22.x"
|
||||
install-packages:
|
||||
description: "Install packages"
|
||||
required: false
|
||||
default: "true"
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: ✅ Checkout code
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: 🎬 Setup pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
|
||||
- name: 🔨 Setup Node.js ${{ inputs.node-version }}
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: ${{ inputs.node-version }}
|
||||
cache: "pnpm"
|
||||
|
||||
- name: 🔌 Install
|
||||
if: ${{ inputs.install-packages == 'true' }}
|
||||
shell: bash
|
||||
run: pnpm install
|
||||
Reference in New Issue
Block a user