diff --git a/.github/workflows/deploy-stage.yml b/.github/workflows/deploy-stage.yml index 6fa5fb17..97ceba5f 100644 --- a/.github/workflows/deploy-stage.yml +++ b/.github/workflows/deploy-stage.yml @@ -35,25 +35,30 @@ jobs: with: node-version: ${{ env.NODE_VERSION }} - - name: 'Cache NPM dependencies' - uses: pat-s/always-upload-cache@v2.1.5 - 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 "

hi

" > 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/always-upload-cache@v2.1.5 +# 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 @@ -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 diff --git a/packages/infra/ci-roles.yml b/packages/infra/ci-roles.yml index 1af4a340..5cfa6c37 100644 --- a/packages/infra/ci-roles.yml +++ b/packages/infra/ci-roles.yml @@ -38,6 +38,7 @@ Resources: - s3:ListBucket - s3:GetObject - s3:PutObject + - s3:DeleteObject Resource: - !Sub arn:aws:s3:::${FrontendBucketName} - !Sub arn:aws:s3:::${FrontendBucketName}/*