Commit 2907eb0 1 parent 22387b5 commit 2907eb0 Copy full SHA for 2907eb0
File tree 3 files changed +10
-69
lines changed
3 files changed +10
-69
lines changed Original file line number Diff line number Diff line change 1
1
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
2
-
3
- name : Build & Lint & Test
4
-
5
- on :
6
- workflow_dispatch :
7
-
8
- pull_request :
9
-
10
- push :
11
- branches :
12
- - next
13
- - main
14
-
15
2
env :
16
- NODE_VERSION : lts/*
3
+ NODE_VERSION : 22.11.0
17
4
18
5
jobs :
19
- build-lint-ts :
20
- name : Build & Lint Typescript
21
- runs-on : ubuntu-latest
22
-
23
- permissions :
24
- contents : read
25
-
26
- steps :
27
- - name : ⤵️ Checkout repository
28
- uses : actions/checkout@v4
29
-
30
- - name : 🏗 Setup nodejs
31
- uses : actions/setup-node@v4
32
- with :
33
- node-version : ${{ env.NODE_VERSION }}
34
-
35
- - name : 🏗 Setup nodejs corepack
36
- run : corepack enable
37
-
38
- - name : 🏗 Get yarn config
39
- id : yarn_config
40
- run : echo "cache_folder=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
41
-
42
- - name : 🏗 Cache Layer
43
- uses : actions/cache@v4
44
- with :
45
- path : ${{ steps.yarn_config.outputs.cache_folder }}
46
- key : ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
47
- restore-keys : |
48
- ${{ runner.os }}-yarn-
49
-
50
- - name : 🏗 Install dependencies
51
- run : yarn install --immutable
52
-
53
- - name : 🚀 Build Typescript
54
- run : yarn build
55
- env :
56
- WIREIT_LOGGER : metrics
57
-
58
- - name : 🚀 Run ESLint
59
- run : yarn lint
60
- env :
61
- WIREIT_LOGGER : metrics
62
-
63
- - name : 🚀 Run Test
64
- run : yarn test
65
- env :
66
- WIREIT_LOGGER : metrics
6
+ main :
7
+ uses : the-nexim/actions/.github/workflows/build-lint-test.yaml@next
8
+ with :
9
+ node-version : ${{ env.NODE_VERSION }}
10
+ secrets : inherit
Original file line number Diff line number Diff line change 22
22
uses : actions/checkout@v4
23
23
with :
24
24
fetch-depth : 0
25
+ token : ${{ secrets.BOT_TOKEN }}
25
26
26
27
- name : 🙂↔️ Import GPG key
27
28
run : |
32
33
33
34
- name : 🫡 Setup Git
34
35
run : |
35
- git config --global user.name "njfamirm-bot "
36
- git config --global user.email "bot@njfamirm.ir "
36
+ git config --global user.name "Nexim Bot "
37
+ git config --global user.email "bot@thenexim.com "
37
38
git config --global user.signingkey ${{ env.GPG_KEY_ID }}
38
39
git config --global commit.gpgsign true
39
40
60
61
- name : 🏗 Install dependencies
61
62
run : yarn install --immutable
62
63
63
- - name : 🗃️ Cache Wireit
64
- uses : google/wireit@setup-github-actions-caching/v2
65
-
66
64
- name : 🚀 Build Typescript
67
65
run : yarn build
68
66
env :
79
77
WIREIT_LOGGER : metrics
80
78
81
79
- name : 🤖 Get Release
82
- run : yarn release -y
80
+ run : yarn lerna version --yes
83
81
env :
84
82
GITHUB_TOKEN : ${{ secrets.BOT_TOKEN }}
85
83
WIREIT_LOGGER : metrics
Original file line number Diff line number Diff line change 6
6
workflow_dispatch :
7
7
push :
8
8
branches :
9
- - main
10
9
- next
11
10
paths :
12
11
- .github/labels.yml
You can’t perform that action at this time.
0 commit comments