Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit f9bd6b4

Browse files
authored
Chore: update the deployment action (#222)
* Chore: update the deployment action * Fix link
1 parent 811af6f commit f9bd6b4

File tree

2 files changed

+11
-27
lines changed

2 files changed

+11
-27
lines changed

.github/workflows/deploy-storybook.yml

Lines changed: 10 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
name: Deploy storybook
22

33
on:
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

118
env:
129
REPO_NAME_ALPHANUMERIC: safereactcomponents
@@ -21,31 +18,18 @@ jobs:
2118
uses: styfle/[email protected]
2219
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
@@ -75,7 +59,7 @@ jobs:
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'

scripts/github/deploy_pull_request.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
BUILD_DIR='storybook-static'
44

55
function 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"

0 commit comments

Comments
 (0)