Skip to content

Commit 80ca8e0

Browse files
committed
ci: improve ci
1 parent 4c42eb6 commit 80ca8e0

4 files changed

Lines changed: 431 additions & 16 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,7 @@ on:
1010

1111
jobs:
1212
ci:
13-
strategy:
14-
matrix:
15-
node-version: [20, 22]
16-
os: [ubuntu-latest, windows-latest]
17-
fail-fast: false
18-
19-
name: node ${{ matrix.node-version }}, ${{ matrix.os }}
20-
runs-on: ${{ matrix.os }}
13+
runs-on: ubuntu-latest
2114

2215
steps:
2316
- name: Checkout
@@ -28,11 +21,11 @@ jobs:
2821
- name: Setup pnpm
2922
uses: pnpm/action-setup@v4
3023

31-
- name: Setup node ${{ matrix.node-version }}
24+
- name: Setup node
3225
uses: actions/setup-node@v4
3326
with:
3427
registry-url: 'https://registry.npmjs.org'
35-
node-version: ${{ matrix.node-version }}
28+
node-version-file: .node-version
3629
cache: pnpm
3730

3831
- name: Install
@@ -44,13 +37,12 @@ jobs:
4437
- name: Test
4538
run: pnpm run test:cover
4639

40+
- name: Build
41+
run: pnpm run build
42+
4743
# Uncomment this step if you want to upload coverage reports to Codecov
4844
# - name: Upload coverage reports to Codecov
49-
# if: ${{ matrix.node-version == '22' && matrix.os == 'ubuntu-latest' }}
5045
# uses: codecov/codecov-action@v5
5146
# with:
5247
# token: ${{ secrets.CODECOV_TOKEN }}
5348
# slug: mys1024/starter-node
54-
55-
- name: Build
56-
run: pnpm run build

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
uses: actions/setup-node@v4
2626
with:
2727
registry-url: 'https://registry.npmjs.org'
28-
node-version: 22
28+
node-version-file: .node-version
2929
cache: pnpm
3030

3131
- name: Install
@@ -46,6 +46,6 @@ jobs:
4646
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4747

4848
- name: Changelog
49-
run: pnpx changelogithub
49+
run: pnpm changelogithub
5050
env:
5151
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"@vitest/coverage-v8": "^3.2.3",
4949
"bump": "^0.2.5",
5050
"bumpp": "^10.1.1",
51+
"changelogithub": "^13.15.0",
5152
"eslint": "^9.29.0",
5253
"lint-staged": "^16.1.2",
5354
"npm-run-all2": "^8.0.4",

0 commit comments

Comments
 (0)