mirror of
https://github.com/documenso/documenso.git
synced 2025-11-10 04:22:32 +10:00
24 lines
562 B
YAML
24 lines
562 B
YAML
name: Cache production build binaries
|
|
description: 'Cache or restore if necessary'
|
|
inputs:
|
|
node_version:
|
|
required: false
|
|
default: v22.x
|
|
runs:
|
|
using: 'composite'
|
|
steps:
|
|
- name: Cache production build
|
|
uses: actions/cache@v3
|
|
id: production-build-cache
|
|
with:
|
|
path: |
|
|
${{ github.workspace }}/apps/web/.next
|
|
**/.turbo/**
|
|
**/dist/**
|
|
|
|
key: prod-build-${{ github.run_id }}-${{ hashFiles('package-lock.json') }}
|
|
restore-keys: prod-build-
|
|
|
|
- run: npm run build
|
|
shell: bash
|