diff --git a/.github/workflows/pr-preview.yml b/.github/workflows/pr-preview.yml new file mode 100644 index 00000000..b395f560 --- /dev/null +++ b/.github/workflows/pr-preview.yml @@ -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/ diff --git a/package-lock.json b/package-lock.json index 018f386a..046f60de 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index fefa4e05..df55cf67 100644 --- a/package.json +++ b/package.json @@ -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": {