Skip to content

Commit

Permalink
Add release package build to GitHub Actions
Browse files Browse the repository at this point in the history
Fixes #4147
  • Loading branch information
colinrotherham committed Nov 28, 2023
1 parent 2876066 commit fd8e14e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit fd8e14e

Please sign in to comment.