-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
24 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters