Skip to content

Commit

Permalink
Merge pull request #202 from Hipo/build/pr-previews
Browse files Browse the repository at this point in the history
build: Add a new workflow that deploys PR previews
  • Loading branch information
jamcry authored Sep 2, 2022
2 parents 15f7dd8 + 6ff323f commit 5901222
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/pr-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Deploy PR previews to GitHub Pages

on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed

concurrency: preview-${{ github.ref }}

jobs:
deploy-preview:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 14

- name: Install dependencies and build storybook
run: |
npm install
npm run storybook:build
- name: Deploy storybook build to GitHub Pages
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./public/
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hipo/react-ui-toolkit",
"version": "1.0.0-beta.1.1.0",
"version": "1.0.0-beta.1.1.1",
"description": "React based UI toolkit.",
"main": "dist/index.js",
"scripts": {
Expand Down

0 comments on commit 5901222

Please sign in to comment.