File tree Expand file tree Collapse file tree 5 files changed +56
-35
lines changed Expand file tree Collapse file tree 5 files changed +56
-35
lines changed Original file line number Diff line number Diff line change 1+ name : ' setup and install'
2+ description : ' Setup Node and Install Dependencies'
3+ runs :
4+ using : ' composite'
5+ steps :
6+ - name : Setup Node
7+ uses : ./.github/actions/setup-node
8+
9+ - name : Restore cached node_modules
10+ uses : actions/cache@v4
11+ with :
12+ path : ' **/node_modules'
13+ key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
14+ restore-keys : |
15+ ${{ runner.os }}-yarn-
16+
17+ - name : Install dependencies
18+ shell : bash
19+ run : make install
Original file line number Diff line number Diff line change 1+ name : ' setup node'
2+ description : ' Setup Node'
3+ runs :
4+ using : ' composite'
5+ steps :
6+ - name : Enable Corepack
7+ shell : bash
8+ run : corepack enable
9+
10+ - name : Set up Node
11+ uses : actions/setup-node@v4
12+ with :
13+ node-version-file : ' .nvmrc'
14+ cache : ' yarn'
15+ cache-dependency-path : yarn.lock
Original file line number Diff line number Diff line change 1- name : Commitlint
1+ name : 🔍 Commit Checks
22on :
33 push :
44 branches-ignore :
55 - main
66
77jobs :
88 commitlint :
9+ name : 🧾 Linting Commit
910 runs-on : ubuntu-24.04
1011 timeout-minutes : 5
1112
1213 steps :
13- - uses : actions/checkout@v4
14- with :
15- fetch-depth : 50
16- - uses : actions/setup-node@v4
17- with :
18- node-version-file : ' .nvmrc'
14+ - name : Checkout
15+ uses : actions/checkout@v4
1916
20- - name : Fetch main
21- run : git fetch --no-tags --depth=50 origin main
22-
23- - name : Install dependencies
24- run : make install
17+ - name : Setup Node and Install Dependencies
18+ uses : ./.github/actions/setup-install
2519
2620 - name : Commitlint
2721 run : npx commitlint --color --verbose --from $(git merge-base origin/main HEAD)
Original file line number Diff line number Diff line change 1- name : Deploy
1+ name : 🚀 Deploy
22on :
33 push :
44 branches :
@@ -10,12 +10,11 @@ jobs:
1010 timeout-minutes : 10
1111
1212 steps :
13- - uses : actions/checkout@v4
14- with :
15- fetch-depth : 0
16- - uses : actions/setup-node@v4
17- with :
18- node-version-file : ' .nvmrc'
13+ - name : Checkout
14+ uses : actions/checkout@v4
15+
16+ - name : Setup Node
17+ uses : ./.github/actions/setup-node
1918
2019 - name : Fetch tags
2120 run : git fetch --tags origin release
2423 - run : git config --global user.name "GitHub CI bot"
2524 - run : git config --global user.email "github-ci-bot@example.com"
2625
27- - run : make install
26+ - name : Install Dependencies
27+ run : make install
2828
2929 - name : Authenticate npm
3030 run : ./bin/ci/npm-auth.sh
Original file line number Diff line number Diff line change 1- name : Test
1+ name : 🔍 Code Quality Checks
22
33on :
44 push :
@@ -12,24 +12,17 @@ jobs:
1212 timeout-minutes : 5
1313
1414 steps :
15- - uses : actions/checkout@v4
16- with :
17- fetch-depth : 50
18- - uses : actions/setup-node@v4
19- with :
20- node-version-file : ' .nvmrc'
15+ - name : Checkout
16+ uses : actions/checkout@v4
2117
22- - name : Fetch main
23- run : git fetch --no-tags --depth=50 origin main
18+ - name : Setup Node and Install Dependencies
19+ uses : ./.github/actions/setup-install
2420
25- - name : Install dependencies
26- run : make install
27-
28- - name : Lint
21+ - name : 📐 Code Linting
2922 run : yarn lint
3023
31- - name : Check code-style format
24+ - name : 💅 Code Formatting
3225 run : yarn format
3326
34- - name : Test packages
27+ - name : 🧪 Testing Packages
3528 run : yarn packages:test
You can’t perform that action at this time.
0 commit comments