This repository was archived by the owner on Apr 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-27
lines changed
Expand file tree Collapse file tree 2 files changed +11
-27
lines changed Original file line number Diff line number Diff line change 11name : Deploy storybook
22
33on :
4- # Disabled until environment is set up again
5- # Pull request hook without any config. Launches for every pull request
6- # pull_request:
7- # Launches build when release is published
8- # release:
9- # types: [published]
4+ pull_request :
5+ release :
6+ types : [published]
107
118env :
129 REPO_NAME_ALPHANUMERIC : safereactcomponents
@@ -21,31 +18,18 @@ jobs:
21182219 with :
2320 access_token : ${{ github.token }}
24-
21+
2522 - uses : actions/checkout@v3
2623
27- - name : Node.js setup
28- uses : actions/setup-node@v3
29- with :
30- node-version : 16
31-
32- - uses : actions/cache@v2
24+ - name : Yarn cache
25+ uses : actions/cache@v3
3326 with :
3427 path : ' **/node_modules'
35- key : ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
36-
37- - name : Env dependencies setup
38- run : |
39- sudo apt-get update
40- sudo apt-get -y install python3-pip python3-dev
41- pip install awscli --upgrade --user
28+ key : web-core-modules-${{ hashFiles('**/yarn.lock') }}
4229
4330 - name : Yarn install
44- run : |
45- mkdir .yarncache
46- yarn install --cache-folder ./.yarncache --frozen-lockfile
47- rm -rf .yarncache
48- yarn cache clean
31+ shell : bash
32+ run : yarn install --immutable
4933
5034 - name : Build storybook
5135 run : yarn build-storybook
7559 repo-token-user-login : ' github-actions[bot]'
7660 if : success() && github.event.number
7761 env :
78- REVIEW_FEATURE_URL : https://pr${{ github.event.number }}--safereactcomponents. review.gnosisdev.com
62+ REVIEW_FEATURE_URL : https://pr${{ github.event.number }}--${{ env.REPO_NAME_ALPHANUMERIC }}. review-react-hr.5afe.dev
7963
8064 # Script to upload release files
8165 - name : ' Upload release build files for production'
Original file line number Diff line number Diff line change 33BUILD_DIR=' storybook-static'
44
55function deploy_pull_request {
6- REVIEW_ENVIRONMENT_DOMAIN=' review.gnosisdev.com '
6+ REVIEW_ENVIRONMENT_DOMAIN=' review-react-hr.5afe.dev '
77
88 # Pull request name with "pr" prefix
99 PULL_REQUEST_NAME=" pr$PR_NUMBER "
You can’t perform that action at this time.
0 commit comments