Skip to content

Commit

Permalink
Revert "Mock building"
Browse files Browse the repository at this point in the history
This reverts commit bc5105a.
  • Loading branch information
mmisiorek committed Dec 19, 2023
1 parent 8d7f5a0 commit e743dca
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 29 deletions.
40 changes: 19 additions & 21 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,25 +35,25 @@ jobs:
with:
node-version: ${{ env.NODE_VERSION }}

# - name: 'Cache NPM dependencies'
# uses: pat-s/[email protected]
# with:
# path: |
# **/node_modules
# key: ${{ runner.OS }}-npm-cache-${{ hashFiles('packages/*/package-lock.json') }}
# restore-keys: |
# ${{ runner.OS }}-npm-cache-
#
# - name: Install dependencies
# run: |
# npm i
# node_modules/.bin/lerna bootstrap
#
# - name: 'Build'
# run: |
# npm run types:build
# npm run analyzer:build
# npm run frontend:build:prod
- name: 'Cache NPM dependencies'
uses: pat-s/[email protected]
with:
path: |
**/node_modules
key: ${{ runner.OS }}-npm-cache-${{ hashFiles('packages/*/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-npm-cache-
- name: Install dependencies
run: |
npm i
node_modules/.bin/lerna bootstrap
- name: 'Build'
run: |
npm run types:build
npm run analyzer:build
npm run frontend:build:prod
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
Expand All @@ -64,8 +64,6 @@ jobs:

- name: 'Deploy'
run: |
mkdir -p packages/frontend/build
echo "hi" > packages/frontend/build/index.html
aws s3 sync packages/frontend/build s3://${BUCKET_NAME}/${PREFIX} --delete --exact-timestamps
- name: Assume role on main AWS account
Expand Down
12 changes: 5 additions & 7 deletions packages/infra/ci-roles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ Parameters:
Type: String
CloudfrontInvalidationRoleArn:
Type: String
MainCloudformationStackArn:
Type: String

Resources:
CIFrontendDeployRole:
Expand Down Expand Up @@ -50,11 +48,11 @@ Resources:
Action:
- cloudformation:DescribeStacks
Resource:
- !Ref MainCloudformationStackArn
- Effect: Allow
Action:
- sts:AssumeRole
Resource: !Ref CloudfrontInvalidationRoleArn
- !Sub arn:aws:cloudformation:${AWS::Region}:${AWS::AccountId}:stack/evm-transaction-trace-stage/*
# - Effect: Allow
# Action:
# - sts:AssumeRole
# Resource: !Ref CloudfrontInvalidationRoleArn

CITranasctionTraceDeployRole:
Type: AWS::IAM::Role
Expand Down
1 change: 0 additions & 1 deletion packages/infra/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,3 @@ Resources:
FrontendBucketName: !Ref FrontendBucketName
GhOIDCProviderArn: !Ref GhOIDCProviderArn
CloudfrontInvalidationRoleArn: !Ref CloudfrontInvalidationRoleArn
MainCloudformationStackArn: !Ref AWS::StackId

0 comments on commit e743dca

Please sign in to comment.