Skip to content

Commit

Permalink
fix(stacks.web): use --ignore-workspace to build web app
Browse files Browse the repository at this point in the history
Signed-off-by: Braden Mars <bradenmars@bradenmars.me>
  • Loading branch information
BradenM committed Sep 23, 2023
1 parent 93d1b6e commit 5aadf9e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/deploy-crisiscleanup-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ jobs:
with:
ref: master
repository: CrisisCleanup/crisiscleanup-4-web
path: ${{runner.temp}}/.crisiscleanup-4-web
path: .crisiscleanup-4-web
- name: Install Web
working-directory: ${{runner.temp}}/.crisiscleanup-4-web
run: pnpm install
working-directory: .crisiscleanup-4-web
run: pnpm --ignore-workspace install
- name: Build Web
working-directory: ${{runner.temp}}/.crisiscleanup-4-web
run: pnpm build:app
working-directory: .crisiscleanup-4-web
run: pnpm --ignore-workspace build:app
- name: Install
run: pnpm install
- name: Build
Expand All @@ -113,7 +113,7 @@ jobs:
pnpm -F 'stacks.web' run synth:silent
cp -r packages/stacks/web/cdk.out ./cdk.out
env:
CCU_WEB_SITE_SOURCE: ${{runner.temp}}/.crisiscleanup-4-web/dist
CCU_WEB_SITE_SOURCE: .crisiscleanup-4-web/dist
- name: Push cdk.context.json
continue-on-error: true
env:
Expand Down
7 changes: 3 additions & 4 deletions packages/stacks/web/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ class CrisisCleanupWebStage extends GitHubStage {
}
}

const webRoot =
interpolateValue(ActionsContext.RUNNER, 'temp') + '/.crisiscleanup-4-web'
const webRoot = '.crisiscleanup-4-web'
const webDist = webRoot + '/dist'
const pipeline = GithubCodePipeline.create({
rootDir: cwd!,
Expand Down Expand Up @@ -94,12 +93,12 @@ const pipeline = GithubCodePipeline.create({
.synthPreStep({
name: 'Build Web',
workingDirectory: webRoot,
run: 'pnpm build:app',
run: 'pnpm --ignore-workspace build:app',
})
.synthPreStep({
name: 'Install Web',
workingDirectory: webRoot,
run: 'pnpm install',
run: 'pnpm --ignore-workspace install',
})
.synthCheckout({
ref: 'master',
Expand Down

0 comments on commit 5aadf9e

Please sign in to comment.