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

on:
pull_request:

jobs:
ci:
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- name: Checkout code
uses: actions/checkout@v6.0.2

- name: Set up Node.js
uses: actions/setup-node@v6.2.0
with:
node-version: 24

- uses: pnpm/action-setup@v4.2.0

- run: pnpm install

- run: pnpm turbo ci
51 changes: 51 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Publish

on:
workflow_dispatch:
inputs:
versionType:
description: "Version type (patch or minor)"
required: true
type: choice
options:
- patch
- minor

permissions:
id-token: write
contents: read

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6.0.2
with:
ssh-key: ${{ secrets.DEPLOY_KEY }}

- name: Set up Node.js
uses: actions/setup-node@v6.2.0
with:
node-version: 24
registry-url: https://registry.npmjs.org

- uses: pnpm/action-setup@v4.2.0

- name: Install dependencies
run: pnpm install

- name: Bump version and commit
run: |
git config --global user.email "dev@mynth.ai"
git config --global user.name "Mynth Publisher"
npm version ${{ github.event.inputs.versionType }} -m "chore(release): bump to %s version"

- name: Build
run: pnpm build

- name: Publish to npm
run: pnpm publish

- name: Push to git repo
run: git push --follow-tags
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.tsbuildinfo
.turbo
.vscode
dist
node_modules
.tsbuildinfo
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"prebuild": "pnpm del -rf dist",
"build": "pnpm tsc",
"postbuild": "pnpm del -rf dist/tests",
"link": "pnpm link --global",
"lint": "pnpm npm-run-all lint:prettier lint:check lint:lint",
"lint:check": "pnpm biome check .",
"lint:lint": "pnpm biome lint .",
Expand Down Expand Up @@ -63,6 +64,7 @@
"ky": "^1.14.3",
"npm-run-all": "^4.1.5",
"tsx": "^4.21.0",
"turbo": "^2.8.10",
"typescript": "^5.9.3",
"vitest": "^4.0.18"
}
Expand Down
64 changes: 64 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://turbo.build/schema.json",
"tasks": {
"build": {},
"lint": {},
"link": {},
"test": { "dependsOn": ["build", "link"] },
"ci": { "dependsOn": ["build", "lint", "test"] }
}
}