Skip to content

Update github action for running publish within workflow step. #18

Update github action for running publish within workflow step.

Update github action for running publish within workflow step. #18

name: Build and Deploy
on:
push:
branches: [main]
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Node environment
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build:storybook
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: storybook-static