-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (31 loc) · 953 Bytes
/
build.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
name: build
on:
push:
branches:
- master
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Checkout
uses: actions/checkout@v4
- name: Install and Build
run: |
npm ci
npm run build
- name: Test
run: npm run test
- name: Coveralls
uses: coverallsapp/github-action@v2
- name: Build Storybook
run: npm run build:storybook
- name: Deploy Storybook
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: dist-storybook