Skip to content

Commit 958b6c6

Browse files
committed
chore(repo): update fork
2 parents c3b69f2 + 0ab9f32 commit 958b6c6

File tree

274 files changed

+44930
-8546
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

274 files changed

+44930
-8546
lines changed

.github/release-drafter.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name-template: 'v$NEXT_PATCH_VERSION'
1+
name-template: 'Sistent v$NEXT_PATCH_VERSION'
22
tag-template: 'v$NEXT_PATCH_VERSION'
33
categories:
44
- title: '🚀 Features'
@@ -22,4 +22,4 @@ template: |
2222
## Contributors
2323
2424
Thank you to our contributors for making this release possible:
25-
$CONTRIBUTORS
25+
$CONTRIBUTORS
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build and Deploy Site
2+
on:
3+
push:
4+
branches: [ master ]
5+
paths:
6+
- '!**'
7+
- 'site/**'
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
jobs:
11+
build-and-deploy:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout 🛎️
15+
uses: actions/checkout@master
16+
with:
17+
fetch-depth: 1
18+
19+
- name: Install and Build 🔧
20+
run: |
21+
cd site
22+
npm install
23+
npm run build
24+
25+
- name: Deploy 🚀
26+
uses: JamesIves/[email protected]
27+
with:
28+
branch: site # The branch the action should deploy to.
29+
folder: public # The folder the action should deploy.
30+
clean: true
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build and Preview Site
2+
on:
3+
pull_request:
4+
branches: [ master ]
5+
types: [opened, synchronize, reopened]
6+
paths:
7+
- '!**'
8+
- 'site/**'
9+
10+
jobs:
11+
site-preview:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout 🛎️
15+
uses: actions/checkout@master
16+
with:
17+
persist-credentials: false
18+
fetch-depth: 1
19+
20+
- name: Install and Build 🔧
21+
run: |
22+
cd site
23+
npm install
24+
npm run noIndex
25+
- name: Zip Site
26+
run: bash site/script.sh
27+
- name: Upload files
28+
uses: actions/upload-artifact@master
29+
with:
30+
name: public-dir
31+
path: ./public-dir.zip
32+
retention-days: 1
33+
- name: Triger Inner workflow
34+
run: echo "trigering inner workflow"

.github/workflows/checks.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,8 @@ jobs:
2424
2525
- name: Prettier check
2626
run: |
27-
yarn format:check
27+
yarn format:check
28+
29+
- name: Build
30+
run: |
31+
yarn run build-all

.github/workflows/preview-site.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Deploy Preview
2+
on:
3+
workflow_run:
4+
workflows:
5+
- Build and Preview Site
6+
types:
7+
- completed
8+
9+
jobs:
10+
deploy-preview:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/[email protected]
15+
16+
- name: Download Site dir
17+
uses: dawidd6/action-download-artifact@v2
18+
with:
19+
github_token: ${{ secrets.GH_ACCESS_TOKEN }}
20+
workflow: build-and-preview-site.yml
21+
run_id: ${{ github.event.workflow_run.id }}
22+
name: public-dir
23+
24+
- name: Unzip Site
25+
run: |
26+
rm -rf ./site/public
27+
unzip public-dir.zip
28+
rm -f public-dir.zip
29+
30+
- name: Deploy to Netlify
31+
id: netlify
32+
uses: nwtgck/[email protected]
33+
with:
34+
publish-dir: 'site/public'
35+
production-deploy: false
36+
github-token: ${{ secrets.GH_ACCESS_TOKEN }}
37+
enable-commit-comment: false
38+
env:
39+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
40+
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
41+
42+
- name: Comment Deploy URL
43+
uses: ./.github/actions/comment-preview-on-pr
44+
with:
45+
token: ${{ secrets.GH_ACCESS_TOKEN }}
46+
deploy_url: "${{ steps.netlify.outputs.deploy-url }}"

.github/workflows/release.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Publish NPM Package
22

33
on:
44
release:
5-
types: [closed]
5+
types: [published]
66
branches:
77
- 'v-*'
88
- master
@@ -35,7 +35,7 @@ jobs:
3535
needs: build
3636
runs-on: ubuntu-latest
3737
permissions:
38-
contents: read
38+
contents: write
3939
packages: write
4040
steps:
4141
- name: Checkout Repo
@@ -60,12 +60,13 @@ jobs:
6060
git config user.email "${{ github.actor}}@users.noreply.github.com"
6161
6262
if [ ${{ github.base_ref }} = development ]; then
63-
npx lerna version --no-private --conventional-commits --conventional-prerelease --preid beta --yes
63+
HUSKY=0 npx lerna version --no-private --conventional-commits --conventional-prerelease --preid beta --yes
6464
else
65-
npx lerna version --no-private --conventional-commits --conventional-graduate --yes
65+
HUSKY=0 npx lerna version --no-private --conventional-commits --yes
6666
fi
6767
68-
npx lerna publish from-git --yes
68+
HUSKY=0 npx lerna publish from-git --no-private --yes
6969
env:
7070
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7171
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
72+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Deploy Storybook
2+
3+
on:
4+
push:
5+
branches:
6+
- "*"
7+
pull_request:
8+
branches:
9+
- "*"
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
node-version: [16, 18, 20]
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v2
21+
22+
- name: Set up Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
27+
- name: Install dependencies
28+
run: yarn install
29+
30+
- name: Build Storybook
31+
run: |
32+
cd apps/design-system
33+
yarn build-storybook
34+
35+
- name: Deploy Storybook
36+
uses: peaceiris/actions-gh-pages@v3
37+
with:
38+
github_token: ${{ secrets.GITHUB_TOKEN }}
39+
publish_dir: ./storybook-static

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,8 @@ dist/**
2828
!.yarn/plugins
2929
!.yarn/releases
3030
!.yarn/sdks
31-
!.yarn/versions
31+
!.yarn/versions
32+
33+
**/storybook-static/**
34+
lerna-debug.log
35+
pub.sh

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
yarn commitlint --edit ${1}

.husky/prepare-commit-msg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
if [ "$2" != "message" ];then
5+
exec < /dev/tty && cz --hook "$1" "$2" "$3" || true
6+
fi

0 commit comments

Comments
 (0)