Skip to content

Commit 8f73aaa

Browse files
committed
chore: add storybook preview to pull requests
1 parent 6e3ae33 commit 8f73aaa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/preview_story_book.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,15 @@ permissions:
88

99
jobs:
1010
build-and-deploy:
11-
runs-on: ubuntu-latest
1211
permissions:
1312
contents: write # to be able to publish a GitHub release
1413
pull-requests: write # to be able to comment on released pull requests
1514
pages: write # to deploy to Pages
1615
id-token: write # to verify the deployment originates from an appropriate source
16+
environment:
17+
name: github-pages
18+
url: ${{ steps.deployment.outputs.page_url }}
19+
runs-on: ubuntu-latest
1720
steps:
1821
- name: Checkout 🛎️
1922
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
@@ -34,7 +37,6 @@ jobs:
3437
target-folder: preview/${{ github.sha }}
3538

3639
- name: Deploy to GitHub Pages
37-
id: deployment
3840
uses: actions/deploy-pages@v4
3941

4042
- name: Comment on Pull Request

0 commit comments

Comments
 (0)