Skip to content

Commit 8a828fc

Browse files
committed
fix: pipeline
1 parent 33f6819 commit 8a828fc

File tree

2 files changed

+47
-17
lines changed

2 files changed

+47
-17
lines changed

.github/workflows/ci-dev.yaml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,28 @@ on:
77

88
jobs:
99
check:
10-
name: Source revision
10+
name: Source Revision
1111
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node-version: [22.x, 20.x, 18.x]
1215

1316
steps:
1417
- uses: actions/checkout@v4
18+
1519
- uses: actions/setup-node@v4
1620
with:
17-
node-version: '22.12.0'
21+
node-version: ${{ matrix.node-version }}
22+
cache: 'npm'
23+
24+
- name: Install Dependencies
25+
run: npm ci
26+
27+
- name: Run Format Check
28+
run: npm run format:check
29+
30+
- name: Run Lint Check
31+
run: npm run lint:check
1832

19-
- run: npm ci
20-
- run: npm run format:check
21-
- run: npm run lint:check
22-
- run: npm run build
33+
- name: Build
34+
run: npm run build

.github/workflows/ci-full.yaml

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,31 @@ on:
77

88
jobs:
99
check:
10-
name: Source revision
10+
name: Source Revision
1111
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node-version: [22.x, 20.x, 18.x]
1215

1316
steps:
1417
- uses: actions/checkout@v4
18+
1519
- uses: actions/setup-node@v4
1620
with:
17-
node-version: '22.12.0'
21+
node-version: ${{ matrix.node-version }}
22+
cache: 'npm'
23+
24+
- name: Install Dependencies
25+
run: npm ci
26+
27+
- name: Run Format Check
28+
run: npm run format:check
29+
30+
- name: Run Lint Check
31+
run: npm run lint:check
1832

19-
- run: npm ci
20-
- run: npm run format:check
21-
- run: npm run lint:check
22-
- run: npm run build
33+
- name: Build
34+
run: npm run build
2335

2436
tag:
2537
name: Version tag
@@ -47,10 +59,16 @@ jobs:
4759
- uses: actions/checkout@v4
4860
- uses: actions/setup-node@v4
4961
with:
50-
node-version: '22.12.0'
51-
registry-url: 'https://registry.npmjs.org'
52-
- run: npm ci
53-
- run: npm run build
54-
- run: npm publish
62+
node-version: '22'
63+
cache: 'npm'
64+
65+
- name: Install Dependencies
66+
run: npm ci
67+
68+
- name: Build
69+
run: npm run build
70+
71+
- name: Publish
72+
run: npm publish
5573
env:
5674
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)