-
Notifications
You must be signed in to change notification settings - Fork 38
42 lines (40 loc) · 1.13 KB
/
test-and-publish-app.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
name: Test and Publish Nightingale App
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- name: 🔧 Install
run: |
yarn
- name: 🔧 Build
run: |
yarn clean
yarn build
- name: 🧪 Test - Unit
run: |
yarn test
- name: 🧪 Test - Lint
run: |
yarn lint
- name: 📚 Storybook
run: |
yarn build-storybook
- name: 🚀 Deploy Storybook
if: github.ref == 'refs/heads/main'
uses: JamesIves/github-pages-deploy-action@v4.3.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages # The branch the action should deploy to.
folder: storybook-static # The folder the action should deploy.
clean: true
- name: 📟 Building V3
if: github.ref == 'refs/heads/main'
run: |
gh workflow run test-and-publish-app.yml --ref v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}