ops(dashboard-v2): deploy storybook on PRs

This commit is contained in:
Michał Leszczyk 2022-02-17 13:11:54 +01:00
parent 7959328bcb
commit 24605b409d
No known key found for this signature in database
GPG Key ID: FA123CA8BAA2FBF4
1 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,22 @@
name: Build Storybook - packages/dashboard-v2
on: [pull_request]
defaults:
run:
working-directory: packages/dashboard-v2
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16.x
- run: yarn install
- run: yarn build-storybook
- name: "Deploy to Skynet"
uses: skynetlabs/deploy-to-skynet-action@v2
with:
upload-dir: packages/dashboard-v2/storybook-build
github-token: ${{ secrets.GITHUB_TOKEN }}