Skip to content

Commit

Permalink
MOcked building package
Browse files Browse the repository at this point in the history
  • Loading branch information
mmisiorek committed Nov 27, 2023
1 parent 30e4651 commit 207a324
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 18 deletions.
41 changes: 23 additions & 18 deletions .github/workflows/deploy-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,25 +35,30 @@ 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
- name: Create index.html
run: |
npm i
node_modules/.bin/lerna bootstrap
mkdir -p packages/frontend/build
echo "<h1>hi</h1>" > index.html
- name: 'Build'
run: |
npm run types:build
npm run analyzer:build
npm run frontend:build:stage
# - 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:stage

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
Expand All @@ -69,7 +74,7 @@ jobs:

- name: Assume role on main AWS account
run: |
output=$(aws sts assume-role --role-arn "" --role-session-name github-stage-frontend-Session)
output=$(aws sts assume-role --role-arn "arn:aws:iam::045028348791:role/rumblefish-website-stage--EvmDebuggerCrossAccountRo-gVxwFWdUWlGx" --role-session-name github-stage-frontend-Session)
echo "AWS_ACCESS_KEY_ID=$(echo $output | jq -r '.Credentials.AccessKeyId')" >> $GITHUB_ENV
echo "AWS_SECRET_ACCESS_KEY=$(echo $output | jq -r '.Credentials.SecretAccessKey')" >> $GITHUB_ENV
Expand Down
1 change: 1 addition & 0 deletions packages/infra/ci-roles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Resources:
- s3:ListBucket
- s3:GetObject
- s3:PutObject
- s3:DeleteObject
Resource:
- !Sub arn:aws:s3:::${FrontendBucketName}
- !Sub arn:aws:s3:::${FrontendBucketName}/*
Expand Down

0 comments on commit 207a324

Please sign in to comment.