Skip to content

chore(documentation): move codeOrSourceMdx and bombArgs to utils folder #2407

chore(documentation): move codeOrSourceMdx and bombArgs to utils folder

chore(documentation): move codeOrSourceMdx and bombArgs to utils folder #2407

###
#
# Build the packages/documentation storybook
#
# This workflow does not have secrets when run from a fork.
# Artifacts are uploaded and used in a subsequent workflow
# with more privileges which does not run unsafe commands.
#
# https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
#
###
name: Build Documentation
on:
pull_request:
paths:
- 'packages/documentation/**'
- 'packages/styles/**'
- 'packages/components/**'
- 'packages/internet-header/**'
- 'packages/icons/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup
uses: swisspost/design-system/.github/actions/setup-pnpm@main
- name: Install documentation & dependencies
run: pnpm --filter design-system-documentation... install
- name: Build documentation & dependencies
run: pnpm --filter design-system-documentation... build
- name: Upload documentation
uses: swisspost/design-system/.github/actions/artifact-upload@main
with:
name: design-system-documentation
folder: packages/documentation/storybook-static
- name: Upload internet header package
uses: swisspost/design-system/.github/actions/artifact-upload@main
with:
name: internet-header
folder: packages/internet-header/dist