forked from viamrobotics/prime
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1.13 KB
/
publish.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
name: Deploy Storybook / NPM Publish
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Install 🔧
uses: ./.github/actions/setup
- name: Build 🏗️
run: |
npm run build-storybook
npm run build
touch ./prime/.nojekyll
# TODO(mc, 2023-03-22): replace with GitHub-official action
# https://github.com/actions/deploy-pages
- name: Deploy Storybook 🚀
uses: JamesIves/github-pages-deploy-action@ba1486788b0490a235422264426c45848eac35c6
with:
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: prime # The folder that the build-storybook script generates files.
CLEAN: true # Automatically remove deleted files from the deploy branch
clean-exclude: |
.nojekyll
- name: Publish 🚀
uses: JS-DevTools/npm-publish@541aa6b21b4a1e9990c95a92c21adc16b35e9551
with:
token: ${{ secrets.NPM_TOKEN }}