Skip to content

Commit

Permalink
Install npm dependencies for other packages before build
Browse files Browse the repository at this point in the history
  • Loading branch information
ScriptSmith committed Oct 4, 2023
1 parent 6c22d20 commit 6947805
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,26 @@ jobs:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
- name: Create frontend output dir
run: mkdir -p frontend/out
- name: Setup api
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: api
- name: Install api dependencies
working-directory: api
run: npm install
- name: Setup deployment
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: deployment
- name: Install CDK
run: npm install -g aws-cdk
- name: Install dependencies
- name: Install deployment dependencies
working-directory: deployment
run: npm install
- uses: aws-actions/configure-aws-credentials@v4
Expand All @@ -38,6 +49,18 @@ jobs:
- name: Save FrontEndEnvironment to file
working-directory: frontend
run: aws cloudformation describe-stacks --stack-name ${{ env.ENVIRONMENT }}-transcription --query "Stacks[0].Outputs[?OutputKey=='FrontEndEnvironment'].OutputValue" --output text > .env.production
- name: Setup frontend
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: frontend
- name: Install frontend dependencies
working-directory: frontend
run: yarn install
- name: Build frontend
working-directory: frontend
run: yarn build
- uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
Expand Down
2 changes: 1 addition & 1 deletion api/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "es2020",
"module": "ES2022",
"module": "commonjs",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
Expand Down

0 comments on commit 6947805

Please sign in to comment.