-
Notifications
You must be signed in to change notification settings - Fork 14
44 lines (36 loc) · 1.05 KB
/
deploy.yml
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
name: Deploy Storybook to GitHub Pages
on:
push:
branches: [main]
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
jobs:
main:
name: 📘 Deploy Storybook to GitHub Pages
runs-on: ubuntu-latest
env:
NX_BRANCH: ${{ github.head_ref || github.ref_name }}
steps:
- name: 🛎 Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 🔍 Check GH_TOKEN
uses: ./.github/actions/check-token
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: 🛠 Setup Volta
uses: volta-cli/action@v4
- name: 💫 Load and cache dependencies
uses: ./.github/actions/cache-deps
- name: ⏳ Build
run: npm run build
shell: bash
- name: 🚚 Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: storybook
folder: ./dist/storybook/beeq
clean: true
token: ${{ secrets.GITHUB_TOKEN }}