-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (34 loc) · 1.04 KB
/
inspection.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Bump PR & NPM Dev Publish
on:
pull_request:
types: [closed, merged, opened]
branches: [toronto, montreal, vancouver, winnipeg]
jobs:
build-storybook:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Node
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
- name: Install
run: npm ci
- name: Build Storybook
run: npm run build-storybook
- name: Create Folder
run: |
FOLDER_NAME=$(echo ${{ github.event.pull_request.base.ref }} | sed 's/\//-/g')
mkdir -p ${{ github.workspace }}/$GITHUB_REPOSITORY/gh-pages/$FOLDER_NAME
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
target-folder: ${{ github.event.pull_request.base.ref }}
branch: gh-pages
folder: storybook-static
clean: true