Skip to content

Commit 9546477

Browse files
authored
chore: add changesets CLI (#1347)
1 parent 1e463c4 commit 9546477

File tree

7 files changed

+69
-507
lines changed

7 files changed

+69
-507
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": ["@langchain/langgraph-sdk-validation", "examples"],
11+
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
12+
"onlyUpdatePeerDependentsWhenOutOfRange": true
13+
}
14+
}

.github/workflows/release.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
workflow_dispatch: # Allows triggering the workflow manually in GitHub UI
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
permissions:
13+
contents: read
14+
pull-requests: write
15+
16+
jobs:
17+
release:
18+
name: Release
19+
runs-on: ubuntu-latest
20+
env:
21+
PUPPETEER_SKIP_DOWNLOAD: "true"
22+
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true"
23+
steps:
24+
- name: Checkout Repo
25+
uses: actions/checkout@v3
26+
27+
- name: Setup Node.js 22.4.1
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: "22.4.1"
31+
cache: "yarn"
32+
33+
- name: Install Dependencies
34+
run: yarn install --immutable
35+
36+
- name: Create Release Pull Request or Publish to npm
37+
id: changesets
38+
uses: changesets/action@v1
39+
with:
40+
publish: yarn release
41+
version: yarn changeset version
42+
env:
43+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

examples/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "examples",
33
"type": "module",
4+
"private": true,
45
"description": "Dependencies for LangGraph examples.",
56
"scripts": {
67
"start": "tsx --experimental-wasm-modules -r dotenv/config src/index.ts"

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
],
2020
"scripts": {
2121
"build": "turbo run build:internal",
22+
"changeset": "npx @changesets/cli@^2.29.5",
2223
"turbo:command": "turbo",
2324
"lint": "turbo run lint",
2425
"lint:fix": "turbo run lint:fix",
@@ -30,7 +31,7 @@
3031
"test:exports:docker": "docker compose -f environment_tests/docker-compose.yml up --force-recreate",
3132
"format": "turbo run format",
3233
"format:check": "turbo run format:check",
33-
"release": "node scripts/release_workspace.cjs --workspace"
34+
"release": "turbo build && yarn changeset publish"
3435
},
3536
"author": "LangChain",
3637
"license": "MIT",

0 commit comments

Comments
 (0)