Skip to content

chore(deps): Bump actions/upload-artifact from 3 to 4 (#969) #524

chore(deps): Bump actions/upload-artifact from 3 to 4 (#969)

chore(deps): Bump actions/upload-artifact from 3 to 4 (#969) #524

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@v4
- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: 18
cache: "npm"
- name: Setup pages
uses: actions/configure-pages@v4
- 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@v3