Skip to content

Commit 0a61eed

Browse files
committed
feat: add docs
1 parent 55289a0 commit 0a61eed

File tree

5 files changed

+57
-5
lines changed

5 files changed

+57
-5
lines changed

.github/workflows/generate-docs.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Generate Docs
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
generate-docs:
8+
runs-on: ubuntu-latest
9+
steps:
10+
11+
- name: Checkout project
12+
uses: actions/checkout@v2
13+
with:
14+
ref: docs
15+
16+
- name: Setup node
17+
uses: actions/setup-node@v2
18+
with:
19+
registry-url: https://registry.npmjs.org
20+
21+
- name: Config git user
22+
run: |
23+
git config --global user.name "${{ github.actor }}"
24+
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
25+
26+
- name: update branch
27+
run: git merge main
28+
29+
- name: Install Node Dependencies
30+
if: steps.cache-node.outputs.cache-hit != 'true'
31+
run: npm ci
32+
env:
33+
CI: TRUE
34+
35+
- name: Build project
36+
run: npm run build
37+
38+
- name: Build storybook
39+
run: npm run storybook:build
40+
41+
- name: Commit changes
42+
run: |
43+
echo "!docs/" >> .gitignore
44+
git add docs
45+
git commit -m'docs: Build of storybook'
46+
git push --force
47+
env:
48+
GH_TOKEN: ${{ github.token }}

.github/workflows/pre-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
required: true
99

1010
jobs:
11-
publish-gpr:
11+
publish:
1212
name: Publish to PR
1313
runs-on: ubuntu-latest
1414
steps:
@@ -43,7 +43,7 @@ jobs:
4343
CI: TRUE
4444

4545
- name: Bump versions (pre-release)
46-
run: npx lerna version --yes --conventional-prerelease --no-changelog --no-git-tag-version --no-private --preid ${{ github.event.inputs.tag }}
46+
run: npx lerna version --yes --conventional-prerelease --no-changelog --no-git-tag-version --preid ${{ github.event.inputs.tag }}
4747
env:
4848
GH_TOKEN: ${{ github.token }}
4949

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- 'packages/**'
99

1010
jobs:
11-
publish-gpr:
11+
release-pkg:
1212
name: Create release
1313
runs-on: ubuntu-latest
1414
steps:
@@ -28,7 +28,7 @@ jobs:
2828
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
2929
3030
- name: Bump versions
31-
run: npx lerna version --yes --conventional-graduate --no-private --create-release github
31+
run: npx lerna version --yes --conventional-graduate --create-release github
3232
env:
3333
GH_TOKEN: ${{ github.token }}
3434

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,7 @@ packages/**/package-lock.json
8080
packages/**/dist
8181

8282
storybook/package-lock.json
83+
84+
docs/
85+
86+

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"version": "independent",
33
"command": {
44
"version": {
5-
"allowBranch": ["main", "feat/*", "feature/*"],
5+
"allowBranch": ["main", "feat/*", "feature/*", "fix/*"],
66
"conventionalCommits": true,
77
"ignoreChanges": ["*.spec.ts", "*.md"]
88
},

0 commit comments

Comments
 (0)