-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (33 loc) · 852 Bytes
/
pages.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
name: Node CI
on: [push, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 16.x
- 18.x
- 20.x
steps:
- uses: actions/checkout@v3.5.3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3.7.0
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
run: |
cd react-fileicons
npm ci
npm run build
cd ../storybook
npm ci
npm run build-storybook
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4.4.3
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages
FOLDER: storybook/storybook-static
env:
CI: true