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
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI

on:
push:
branches: [main]
pull_request:

jobs:
ci:
name: Node ${{ matrix.node }}
runs-on: ubuntu-latest
strategy:
matrix:
node: [20, 22, 24]
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4

- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: pnpm

- name: Install
run: pnpm install

- name: Lint
run: pnpm lint

- name: Typecheck
run: pnpm typecheck

- name: Build
run: pnpm build

- name: Test
run: pnpm test
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release

on:
workflow_dispatch:
release:
types: [published]

jobs:
publish:
name: Publish to npm
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4

- uses: actions/setup-node@v4
with:
node-version: 24
registry-url: https://registry.npmjs.org
cache: pnpm

- name: Install
run: pnpm install

- name: Build
run: pnpm build

- name: Publish
env:
NPM_TAG: ${{ github.event.release.prerelease && 'next' || 'latest' }}
run: pnpm publish --tag "$NPM_TAG" --access public --no-git-checks --provenance
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
"access": "public"
},
"files": [
"dist/bin.*",
"dist/src",
"dist/cli.config.*",
"dist",
".claude-plugin",
"skills",
"package.json",
Expand Down Expand Up @@ -58,20 +56,21 @@
"@types/react": "^19.2.9",
"@types/semver": "^7.7.1",
"@types/yargs": "^17.0.35",
"@vitest/ui": "^4.0.17",
"@vitest/coverage-v8": "^4.0.18",
"@vitest/ui": "^4.0.18",
"dotenv": "^17.2.3",
"prettier": "^3.8.0",
"tsx": "^4.20.3",
"typescript": "^5.9.3",
"vitest": "^4.0.17"
"vitest": "^4.0.18"
},
"engines": {
"node": ">=20.20"
},
"packageManager": "pnpm@10.23.0+sha512.21c4e5698002ade97e4efe8b8b4a89a8de3c85a37919f957e7a0f30f38fbc5bbdd05980ffe29179b2fb6e6e691242e098d945d1601772cad0fef5fb6411e2a4b",
"scripts": {
"clean": "rm -rf ./dist",
"prebuild": "echo \"export const version = '$(node -p \"require('./package.json').version\")';\" > src/version.ts && pnpm clean",
"prebuild": "pnpm clean",
"build:watch": "pnpm tsc -w",
"build": "pnpm tsc",
"postbuild": "chmod +x ./dist/bin.js && cp -r scripts/** dist",
Expand All @@ -81,6 +80,7 @@
"dev": "pnpm build && pnpm link --global && pnpm build:watch",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"typecheck": "tsc --noEmit"
},
"author": "WorkOS",
Expand Down
Loading