diff --git a/.github/workflows/actions/build/action.yml b/.github/workflows/actions/build/action.yml index 34e207e571..df278d53d2 100644 --- a/.github/workflows/actions/build/action.yml +++ b/.github/workflows/actions/build/action.yml @@ -15,15 +15,21 @@ runs: # Restore build cache (unless commit SHA changes) key: build-${{ runner.os }}-${{ github.sha }} path: | + dist packages/*/dist shared/*/dist - name: Build id: build + env: + NODE_ENV: production + # Skip build when we’ve built this SHA before if: steps.build-cache.outputs.cache-hit != 'true' shell: bash - # Build all workspaces - run: npm run build --workspaces --if-present + # Build all workspaces including releases + run: | + npm run build --workspaces --if-present + npm run build:release --workspaces --if-present