Skip to content

Commit

Permalink
build: add changesets (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonom authored Jun 17, 2024
1 parent 3c3eaaf commit 6e9528d
Show file tree
Hide file tree
Showing 11 changed files with 1,037 additions and 8 deletions.
8 changes: 8 additions & 0 deletions .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 .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.0.1/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
7 changes: 7 additions & 0 deletions .changeset/popular-singers-punch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@assistant-ui/react-hook-form": patch
"@assistant-ui/react-ai-sdk": patch
"@assistant-ui/react": patch
---

build: add changesets
7 changes: 7 additions & 0 deletions .changeset/stale-pans-remain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@assistant-ui/react-hook-form": patch
"@assistant-ui/react-ai-sdk": patch
"@assistant-ui/react": patch
---

feat: add useAssistantTool API
38 changes: 38 additions & 0 deletions .github/workflows/changeset.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Changesets
on:
push:
branches:
- main
env:
CI: true
PNPM_CACHE_FOLDER: .pnpm-store
jobs:
version:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: checkout code repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: setup node.js
uses: actions/setup-node@v3
with:
node-version: 14
- name: install pnpm
run: npm i pnpm@latest -g
- name: Setup npmrc
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
- name: setup pnpm config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
- name: install dependencies
run: pnpm install
- name: create and publish versions
uses: changesets/action@v1
with:
version: pnpm ci:version
commit: "chore: update versions"
title: "chore: update versions"
publish: pnpm ci:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
"name": "assistant-ui",
"private": "true",
"scripts": {
"lint": "biome lint ."
"lint": "biome lint .",
"ci:publish": "pnpm publish -r"
},
"devDependencies": {
"@biomejs/biome": "1.8.1",
"@changesets/cli": "^2.27.5",
"turbo": "^2.0.4"
},
"packageManager": "pnpm@9.3.0+sha512.ee7b93e0c2bd11409c6424f92b866f31d3ea1bef5fbe47d3c7500cdc3c9668833d2e55681ad66df5b640c61fa9dc25d546efa54d76d7f8bf54b13614ac293631"
Expand Down
3 changes: 2 additions & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"prepublish": "cp ../../README.md ./README.md"
},
"publishConfig": {
"access": "public"
"access": "public",
"provenance": true
}
}
3 changes: 2 additions & 1 deletion packages/react-ai-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
"@types/node": "^20.14.2"
},
"publishConfig": {
"access": "public"
"access": "public",
"provenance": true
},
"homepage": "https://assistant-ui.com/",
"repository": {
Expand Down
3 changes: 2 additions & 1 deletion packages/react-hook-form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"build": "tsup src/index.ts --format cjs,esm --dts --sourcemap"
},
"publishConfig": {
"access": "public"
"access": "public",
"provenance": true
}
}
3 changes: 2 additions & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@
"tsup": "^8.1.0"
},
"publishConfig": {
"access": "public"
"access": "public",
"provenance": true
},
"homepage": "https://assistant-ui.com/",
"repository": {
Expand Down
Loading

0 comments on commit 6e9528d

Please sign in to comment.