2023-12-04 02:25:41 +00:00
|
|
|
name: 'Build Setup'
|
|
|
|
description: 'Setup node and install dependencies'
|
|
|
|
|
2024-01-14 15:28:29 +00:00
|
|
|
inputs:
|
|
|
|
registry-url:
|
|
|
|
description: 'Optional registry to set up for auth.'
|
|
|
|
required: false
|
|
|
|
|
2023-12-04 02:25:41 +00:00
|
|
|
runs:
|
|
|
|
using: 'composite'
|
|
|
|
steps:
|
|
|
|
- name: Setup node
|
|
|
|
uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
node-version-file: '.nvmrc'
|
2024-01-14 15:28:29 +00:00
|
|
|
registry-url: ${{ inputs.registry-url }}
|
2023-12-04 02:25:41 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
uses: bahmutov/npm-install@v1
|
|
|
|
with:
|
|
|
|
install-command: npm ci --prefer-offline --audit false --ignore-scripts --no-fund
|