Skip to content

Commit 5901222

Browse files
authored
Merge pull request #202 from Hipo/build/pr-previews
build: Add a new workflow that deploys PR previews
2 parents 15f7dd8 + 6ff323f commit 5901222

File tree

3 files changed

+36
-2
lines changed

3 files changed

+36
-2
lines changed

.github/workflows/pr-preview.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Deploy PR previews to GitHub Pages
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- reopened
8+
- synchronize
9+
- closed
10+
11+
concurrency: preview-${{ github.ref }}
12+
13+
jobs:
14+
deploy-preview:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v3
20+
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v1
23+
with:
24+
node-version: 14
25+
26+
- name: Install dependencies and build storybook
27+
run: |
28+
npm install
29+
npm run storybook:build
30+
31+
- name: Deploy storybook build to GitHub Pages
32+
uses: rossjrw/pr-preview-action@v1
33+
with:
34+
source-dir: ./public/

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hipo/react-ui-toolkit",
3-
"version": "1.0.0-beta.1.1.0",
3+
"version": "1.0.0-beta.1.1.1",
44
"description": "React based UI toolkit.",
55
"main": "dist/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)