Skip to content

Commit a6e274e

Browse files
chore: adding worflow for PR based on extension
1 parent 5659083 commit a6e274e

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed
+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build Storybook PR
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
jobs:
8+
build-storybook:
9+
name: Build Storybook PR
10+
runs-on: ubuntu-latest
11+
defaults:
12+
run:
13+
working-directory: apps/storybook-react
14+
steps:
15+
- name: Checkout and setup high risk environment
16+
uses: MetaMask/action-checkout-and-setup@v1
17+
with:
18+
is-high-risk-environment: true
19+
skip-allow-scripts: true
20+
21+
- name: Build storybook
22+
run: yarn build-storybook
23+
24+
- name: Upload 'storybook-build' to S3
25+
if: ${{ vars.AWS_REGION && vars.AWS_IAM_ROLE && vars.AWS_S3_BUCKET }}
26+
uses: metamask/github-tools/.github/actions/upload-s3@1233659b3850eb84824d7375e2e0c58eb237701d
27+
with:
28+
aws-region: ${{ vars.AWS_REGION }}
29+
role-to-assume: ${{ vars.AWS_IAM_ROLE }}
30+
s3-bucket: ${{ vars.AWS_S3_BUCKET }}/${{ github.event.repository.name }}/${{ github.event.pull_request.number }}/storybook-build
31+
path: apps/storybook-react/storybook-static

0 commit comments

Comments
 (0)