Skip to content

Commit

Permalink
chore: testing new preview workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tibuurcio committed Sep 18, 2024
1 parent 74129b9 commit ea9da7e
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# .github/workflows/preview.yml
name: Deploy PR previews

permissions:
contents: read
pages: write
id-token: write

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: Install and Build
if: github.event.action != 'closed' # You might want to skip the build if the PR has been closed
run: |
npm install
npm run build-storybook
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./storybook-static/

0 comments on commit ea9da7e

Please sign in to comment.