Skip to content

Commit

Permalink
Create setup-and-build.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
SpyC0der77 authored Dec 17, 2024
1 parent ea0c8ff commit 5e62c6c
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/setup-and-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Setup and Build
description: Generic setup action
inputs:
pnpm-version:
required: false
type: string
default: '9.4.0'
node-version:
required: false
type: string
default: '20.15.1'

runs:
using: composite

steps:
- uses: pnpm/action-setup@v4
with:
version: ${{ inputs.pnpm-version }}
run_install: false

- name: Set Node.js version to ${{ inputs.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
cache: pnpm

- name: Install dependencies and build project
shell: bash
run: |
pnpm install
pnpm run build

0 comments on commit 5e62c6c

Please sign in to comment.