Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,34 @@ name: CI

on:
push:
branches: [main]
pull_request:

permissions:
contents: read

jobs:
test:
check:
name: Typecheck, test, and pack dry-run
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
- name: Checkout
uses: actions/checkout@v6
Comment thread
eiei114 marked this conversation as resolved.
with:
fetch-depth: 0
- uses: actions/setup-node@v6

- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24
package-manager-cache: false
- run: npm ci
- run: npm run check

- name: Install dependencies
run: npm ci

- name: Run check
run: npm run check

- name: Verify version bump policy
if: github.event_name == 'pull_request'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"scripts": {
"typecheck": "tsc --noEmit",
"test": "node --import tsx --test \"test/**/*.test.ts\"",
"check": "npm run typecheck && npm test",
"check": "npm run typecheck && npm test && npm run release:npm:dry",
"release:npm:dry": "npm pack --dry-run",
"prepublishOnly": "npm run check",
"version:check": "node scripts/check-version-bump.mjs"
Expand Down