Skip to content

chore: Turn off style and dev flags (#933) #506

chore: Turn off style and dev flags (#933)

chore: Turn off style and dev flags (#933) #506

Workflow file for this run

---
name: Publish Storybook
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "gh-pages"
cancel-in-progress: true
jobs:
build:
name: Build Storybook site
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: 16
cache: "npm"
- name: Setup pages
uses: actions/configure-pages@v3
- name: Globally update npm
run: npm install -g npm@latest
- name: Install dependencies
run: npm ci
- name: Build library's dependencies
run: npx lerna exec --include-dependencies --scope '@easydynamics/oscal-react-library' -- npm run build
- name: Build Storybook
run: npm run build-storybook
working-directory: packages/oscal-react-library
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: packages/oscal-react-library/storybook-static
retention-days: "7"
deploy:
environment:
name: storybook
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2