Files
documenso/.github/actions/cache-build/action.yml
nafees nazik c8337d7dcc fix: key
2024-01-05 02:13:42 +05:30

26 lines
646 B
YAML

name: Cache production build binaries
description: 'Cache or restore if necessary'
inputs:
node_version:
required: false
default: v18.x
runs:
using: 'composite'
steps:
- name: Cache production build
uses: actions/cache@v3
id: production-build-cache
with:
path: |
${{ github.workspace }}/apps/web/.next
${{ github.workspace }}/apps/marketing/.next
**/.turbo/**
**/dist/**
key: prod-build-${{ github.run_id }}
restore-keys: prod-build-
- run: npm run build
shell: bash
if: steps.production-build-cache.outputs.cache-hit != 'true'