-
Notifications
You must be signed in to change notification settings - Fork 13
36 lines (28 loc) · 869 Bytes
/
main.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
name: CI
on: [push]
jobs:
build-and-deploy:
name: Build, lint, and test on Node 14.x
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Install Node
uses: actions/setup-node@v1
with:
node-version: 18.x
- name: Install deps and build (with cache)
uses: bahmutov/npm-install@v1
# - name: Lint
# run: yarn lint
# - name: Test
# run: yarn test --ci --coverage --maxWorkers=2
- name: Build
run: yarn build && yarn build-storybook
- uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN }}
- name: Deploy storybook 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: storybook-static # The folder the action should deploy.