Skip to content

Commit

Permalink
update federation buildspec
Browse files Browse the repository at this point in the history
  • Loading branch information
mike2872 committed Jul 24, 2024
1 parent 26c5ea3 commit 7db0a38
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/buildspec_federation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,17 @@ phases:

post_build:
commands:
- echo "$PWD" | xargs -I {} pnpm --filter @shapegames/web-library-federation.delegate exec $SCRIPT_PATH {}
- |
if [ "$MODULE_TYPE" = "delegate" ]; then
SCRIPT="prepare_upload_delegate.js"
else
SCRIPT="prepare_upload.js"
fi
- export DELEGATED_MODULE_PATH=$(pnpm list --parseable --depth 0 @shapegames/web-library-federation.delegated-module | grep delegated-module)
- export ROOT_PATH=$(echo "$PWD")
- pnpm --filter @shapegames/web-library-federation.delegate exec $DELEGATED_MODULE_PATH/dist/$SCRIPT $ROOT_PATH

artifacts:
files:
- '**/*'
base-directory: federation-dist
base-directory: federation-dist

0 comments on commit 7db0a38

Please sign in to comment.