mirror of
https://github.com/documenso/documenso.git
synced 2026-09-29 16:24:30 +10:00
Upgrade to Node 24 LTS, using the alpine 3.23 tag to handle issues with streaming zip files on 24.16 which hangs npm ci. Pin npm to 11.19.1 for min-release-age-exclude support. Slim the runner image by dropping dev deps, the react-email CLI, and esbuild, none of which run in production. Install turbo from the lockfile version instead of a hardcoded one.
26 lines
496 B
YAML
26 lines
496 B
YAML
name: 'Setup node'
|
|
inputs:
|
|
node_version:
|
|
required: false
|
|
default: v24.x
|
|
|
|
runs:
|
|
using: 'composite'
|
|
steps:
|
|
- name: Set up Node ${{ inputs.node_version }}
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: ${{ inputs.node_version }}
|
|
|
|
- name: Enable corepack
|
|
shell: bash
|
|
run: corepack enable npm
|
|
|
|
- name: Install dependencies
|
|
shell: bash
|
|
run: |
|
|
npm ci --no-audit
|
|
npm run prisma:generate
|
|
env:
|
|
HUSKY: '0'
|