Skip to content

Commit

Permalink
chore: add changesets (#12)
Browse files Browse the repository at this point in the history
* base changesets

* lint again

* more stuff

* use libs prod

* stuff

* yaml

* fix

* fix

* fix lock
  • Loading branch information
mPaella authored Dec 6, 2024
1 parent 2711dd8 commit 2d2b7b9
Show file tree
Hide file tree
Showing 21 changed files with 766 additions and 375 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/ci-cd-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CI-CD-MAIN

on:
push:
branches:
- main

jobs:
build-and-test:
name: build & test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js, PNPM, and install dependencies
uses: ./.github/actions/pnpm-install

- name: Build all
working-directory: ./typescript
run: pnpm build

- name: Test all
working-directory: ./typescript
run: pnpm test


release-or-create-release-pr:
name: Release
runs-on: ubuntu-latest
needs: [build-and-test]
steps:
- uses: actions/checkout@v4

- name: Setup Node.js, PNPM, and install dependencies
uses: ./.github/actions/pnpm-install

- name: Create Release Pull Request or Publish
uses: changesets/action@v1
with:
commit: "Release packages"
title: "Release packages"
publish: pnpm change:publish
version: pnpm change:version
cwd: ./typescript
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: CI
name: CI-PR

on:
push:
branches-ignore:
- main

jobs:
build-and-test:
Expand Down
6 changes: 3 additions & 3 deletions goat.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
}
],
"settings": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "biomejs.biome"
}
"editor.formatOnSave": true,
"editor.defaultFormatter": "biomejs.biome"
}
}
8 changes: 8 additions & 0 deletions typescript/.changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions typescript/.changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": ["@changesets/cli/changelog", { "repo": "goat-sdk/goat" }],
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
2 changes: 2 additions & 0 deletions typescript/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
engine-strict=true
save-exact=true
2 changes: 1 addition & 1 deletion typescript/biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"files": {
"ignoreUnknown": false,
"ignore": ["dist/**/*"]
"ignore": ["dist/**/*", "node_modules/**/*", ".next/**/*", ".turbo/**/*"]
},
"formatter": {
"enabled": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
},
"dependencies": {
"@11labs/react": "^0.0.4",
"@goat-sdk/adapter-eleven-labs": "0.1.2",
"@goat-sdk/core": "0.3.10",
"@goat-sdk/wallet-viem": "0.1.3",
"@goat-sdk/adapter-eleven-labs": "workspace:*",
"@goat-sdk/core": "workspace:*",
"@goat-sdk/wallet-viem": "workspace:*",
"@goat-sdk/plugin-coingecko": "workspace:*",
"@tanstack/react-query": "^5.62.2",
"connectkit": "^1.8.2",
Expand Down
8 changes: 4 additions & 4 deletions typescript/examples/langchain/viem/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"author": "",
"license": "MIT",
"dependencies": {
"@goat-sdk/adapter-langchain": "0.1.4",
"@goat-sdk/core": "0.3.8",
"@goat-sdk/plugin-erc20": "0.1.4",
"@goat-sdk/wallet-viem": "0.1.3",
"@goat-sdk/adapter-langchain": "workspace:*",
"@goat-sdk/core": "workspace:*",
"@goat-sdk/plugin-erc20": "workspace:*",
"@goat-sdk/wallet-viem": "workspace:*",
"@langchain/core": "^0.3.6",
"@langchain/openai": "^0.3.5",
"dotenv": "^16.4.5",
Expand Down
5 changes: 1 addition & 4 deletions typescript/examples/vercel-ai/coingecko/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "",
"private": true,
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "vitest run --passWithNoTests"
},
"author": "",
"license": "MIT",
Expand All @@ -18,8 +18,5 @@
"ai": "^4.0.3",
"dotenv": "^16.4.5",
"viem": "2.21.49"
},
"devDependencies": {
"@types/node": "^22.7.4"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"license": "MIT",
"dependencies": {
"@ai-sdk/openai": "^1.0.4",
"@goat-sdk/adapter-vercel-ai": "0.1.4",
"@goat-sdk/core": "0.3.5",
"@goat-sdk/plugin-erc20": "0.1.4",
"@goat-sdk/crossmint": "0.1.4",
"@goat-sdk/adapter-vercel-ai": "workspace:*",
"@goat-sdk/core": "workspace:*",
"@goat-sdk/plugin-erc20": "workspace:*",
"@goat-sdk/crossmint": "workspace:*",
"ai": "^4.0.3",
"dotenv": "^16.4.5",
"viem": "2.21.49"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"license": "MIT",
"dependencies": {
"@ai-sdk/openai": "^1.0.4",
"@goat-sdk/adapter-vercel-ai": "0.1.4",
"@goat-sdk/core": "0.3.8",
"@goat-sdk/plugin-erc20": "0.1.4",
"@goat-sdk/crossmint": "0.1.4",
"@goat-sdk/adapter-vercel-ai": "workspace:*",
"@goat-sdk/core": "workspace:*",
"@goat-sdk/plugin-erc20": "workspace:*",
"@goat-sdk/crossmint": "workspace:*",
"@solana/web3.js": "1.95.8",
"ai": "^4.0.3",
"dotenv": "^16.4.5",
Expand Down
6 changes: 3 additions & 3 deletions typescript/examples/vercel-ai/polymarket/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"license": "MIT",
"dependencies": {
"@ai-sdk/openai": "^1.0.4",
"@goat-sdk/adapter-vercel-ai": "0.1.4",
"@goat-sdk/core": "0.3.8",
"@goat-sdk/adapter-vercel-ai": "workspace:*",
"@goat-sdk/core": "workspace:*",
"@goat-sdk/plugin-polymarket": "workspace:*",
"@goat-sdk/wallet-viem": "0.1.3",
"@goat-sdk/wallet-viem": "workspace:*",
"ai": "^4.0.3",
"dotenv": "^16.4.5",
"viem": "2.21.49"
Expand Down
8 changes: 4 additions & 4 deletions typescript/examples/vercel-ai/solana/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"license": "MIT",
"dependencies": {
"@ai-sdk/openai": "^1.0.4",
"@goat-sdk/adapter-vercel-ai": "0.1.4",
"@goat-sdk/core": "0.3.8",
"@goat-sdk/plugin-erc20": "0.1.4",
"@goat-sdk/wallet-solana": "0.1.3",
"@goat-sdk/adapter-vercel-ai": "workspace:*",
"@goat-sdk/core": "workspace:*",
"@goat-sdk/plugin-erc20": "workspace:*",
"@goat-sdk/wallet-solana": "workspace:*",
"@solana/web3.js": "1.95.8",
"ai": "^4.0.3",
"bip39": "^3.1.0",
Expand Down
8 changes: 4 additions & 4 deletions typescript/examples/vercel-ai/viem/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"license": "MIT",
"dependencies": {
"@ai-sdk/openai": "^1.0.4",
"@goat-sdk/adapter-vercel-ai": "0.1.4",
"@goat-sdk/core": "0.3.8",
"@goat-sdk/plugin-erc20": "0.1.4",
"@goat-sdk/wallet-viem": "0.1.3",
"@goat-sdk/adapter-vercel-ai": "workspace:*",
"@goat-sdk/core": "workspace:*",
"@goat-sdk/plugin-erc20": "workspace:*",
"@goat-sdk/wallet-viem": "workspace:*",
"ai": "^4.0.3",
"dotenv": "^16.4.5",
"viem": "2.21.49"
Expand Down
25 changes: 16 additions & 9 deletions typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,27 @@
"version": "0.1.1",
"scripts": {
"build": "pnpm turbo build",
"build:libs": "pnpm turbo --filter \"./packages/**\" build",
"build:libs:prod": "cross-env NODE_ENV=production pnpm build:libs",
"clean": "pnpm turbo clean",
"lint": "pnpm biome check --write",
"change:add": "pnpm changeset add",
"change:publish": "pnpm build:libs:prod && pnpm changeset publish --no-git-tag",
"change:version": "pnpm changeset version && pnpm lint:fix",
"lint": "biome check --diagnostic-level=error --max-diagnostics=200",
"lint:fix": "biome check --write",
"test": "pnpm turbo test"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@types/node": "^22.7.4",
"globals": "^15.12.0",
"ts-node": "^10.9.2",
"tsup": "^8.3.5",
"typescript": "^5.6.3",
"@changesets/cli": "2.27.10",
"@types/node": "22.7.4",
"cross-env": "7.0.3",
"globals": "15.12.0",
"ts-node": "10.9.2",
"tsup": "8.3.5",
"turbo": "2.3.1",
"vitest": "^2.1.5"
"typescript": "5.6.3",
"vitest": "2.1.5"
},
"engines": {
"node": ">=20.12.2 <21",
Expand All @@ -34,6 +42,5 @@
"url": "https://github.com/crossmint/goat/issues"
},
"keywords": ["ai", "agents", "web3"],
"packageManager": "[email protected]",
"workspaces": ["packages/*", "examples/*"]
"packageManager": "[email protected]"
}
19 changes: 2 additions & 17 deletions typescript/packages/plugins/coingecko/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,12 @@
"scripts": {
"build": "tsup",
"clean": "rm -rf dist",
"test": "vitest"
"test": "vitest run --passWithNoTests"
},
"sideEffects": false,
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"devDependencies": {
"@types/node": "^22.7.4",
"globals": "^15.12.0",
"ts-node": "^10.9.2",
"tsup": "^8.3.5",
"typescript": "^5.6.3",
"vitest": "^2.1.5"
},
"dependencies": {
"@goat-sdk/core": "workspace:*",
"viem": "^2.21.49",
Expand All @@ -28,12 +20,6 @@
"@goat-sdk/core": "workspace:*",
"viem": "^2.21.49"
},
"engines": {
"node": ">=20.12.2 <21",
"npm": "please-use-pnpm",
"pnpm": ">=9",
"yarn": "please-use-pnpm"
},
"homepage": "https://ohmygoat.dev",
"repository": {
"type": "git",
Expand All @@ -43,6 +29,5 @@
"bugs": {
"url": "https://github.com/goat-sdk/goat/issues"
},
"keywords": ["ai", "agents", "web3"],
"packageManager": "[email protected]"
"keywords": ["ai", "agents", "web3"]
}
Loading

0 comments on commit 2d2b7b9

Please sign in to comment.