feat(FN-4093): refactor PR checks workflow with new setup-node-pnpm composi
FN-4093 introduced a reusable `setup-node-pnpm` composite GitHub Action and refactored the PR checks workflow to use it, reducing the workflow file by over 60 lines while adding a contract test for the action. A small follow-up stabilizes workspace quality gates by adding an export in the core store Fusion-Task-Id: FN-4093
This commit is contained in:
29
.github/actions/setup-node-pnpm/action.yml
vendored
Normal file
29
.github/actions/setup-node-pnpm/action.yml
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
name: setup-node-pnpm
|
||||
description: "Checkout, install pnpm, setup Node.js, install dependencies"
|
||||
inputs:
|
||||
node-version:
|
||||
description: Node.js version
|
||||
required: false
|
||||
default: "24"
|
||||
install-args:
|
||||
description: Arguments passed to pnpm install
|
||||
required: false
|
||||
default: "--frozen-lockfile"
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v5
|
||||
with:
|
||||
node-version: ${{ inputs.node-version }}
|
||||
cache: pnpm
|
||||
|
||||
- name: Install dependencies
|
||||
shell: bash
|
||||
run: pnpm install ${{ inputs.install-args }}
|
||||
Reference in New Issue
Block a user