Skip to content

Commit c310c17

Browse files
committed
Only build example app for later versions of Node in CI
1 parent 8921cc7 commit c310c17

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,31 @@ jobs:
7979
- uses: coverallsapp/[email protected]
8080
with:
8181
github-token: ${{ secrets.GITHUB_TOKEN }}
82+
build-package-only:
83+
name: Build (Package Only) - ${{ matrix.os }}/Node ${{ matrix.node_version }}
84+
strategy:
85+
fail-fast: false
86+
matrix:
87+
node_version:
88+
- 16
89+
os:
90+
- macos-latest
91+
- ubuntu-latest
92+
- windows-latest
93+
runs-on: ${{ matrix.os }}
94+
steps:
95+
- uses: actions/checkout@v4
96+
- uses: actions/setup-node@v4
97+
with:
98+
node-version: ${{ matrix.node_version }}
99+
- run: npm ci
100+
- run: npm run-s build
82101
build:
83102
name: Build - ${{ matrix.os }}/Node ${{ matrix.node_version }}
84103
strategy:
85104
fail-fast: false
86105
matrix:
87106
node_version:
88-
- 16
89107
- 18
90108
- 20
91109
os:
@@ -126,6 +144,7 @@ jobs:
126144
- typescript
127145
- test
128146
- build
147+
- build-package-only
129148
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
130149
name: GitHub Pages
131150
runs-on: ubuntu-latest
@@ -160,6 +179,7 @@ jobs:
160179
- typescript
161180
- test
162181
- build
182+
- build-package-only
163183
if: github.event.action == 'published'
164184
name: Publish
165185
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)