-
Notifications
You must be signed in to change notification settings - Fork 14
46 lines (38 loc) · 1.23 KB
/
build-documentation.yaml
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
35
36
37
38
39
40
41
42
43
44
45
46
###
#
# 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:
types: [opened, synchronize, edited, reopened]
paths:
- 'packages/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Create preview message
uses: ./.github/actions/preview/message/create
with:
access-token: ${{ secrets.SWISSPOSTDEVS_ACCESS_TOKEN }}
- 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: ./.github/actions/artifact-upload
with:
name: design-system-documentation
folder: packages/documentation/storybook-static