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
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.1.1/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
7 changes: 0 additions & 7 deletions .github/labeler.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/workflows/pr-labeler.yml

This file was deleted.

82 changes: 82 additions & 0 deletions .github/workflows/publish_changesets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: Version Bump and Release

on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
runs-on: ubuntu-latest
# Only run on main branch pushes
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout Repo
uses: actions/checkout@v5

- uses: pnpm/action-setup@v4

- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: "22"
cache: "pnpm"

- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: "3.11"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems rather old


- name: Install uv
uses: astral-sh/setup-uv@v7

- name: Install dependencies
run: pnpm install

- name: Create Release Pull Request or Publish packages
id: changesets
uses: changesets/action@v1
with:
commit: "chore: version packages"
title: "chore: version packages"
# Custom version script
version: pnpm -w run version
# Custom publish script
publish: pnpm -w run publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
UV_PUBLISH_TOKEN: ${{ secrets.UV_PUBLISH_TOKEN }}

- name: Generate GitHub App token
if: steps.changesets.outputs.published == 'true'
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.CI_BOT_APP_ID }}
private-key: ${{ secrets.CI_BOT_PRIVATE_KEY }}

- name: Extract published llama-index-workflows version
if: steps.changesets.outputs.published == 'true'
id: workflows-version
run: |
PACKAGES='${{ steps.changesets.outputs.publishedPackages }}'
VERSION=$(echo "$PACKAGES" | jq -r '.[] | select(.name == "llama-index-workflows") | .version')

if [ -n "$VERSION" ]; then
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
echo "tag=llama-index-workflows@v${VERSION}" >> "$GITHUB_OUTPUT"
echo "Found llama-index-workflows version: $VERSION"
else
echo "llama-index-workflows was not published in this release"
fi

- name: Trigger OpenAPI publish for llama-index-workflows
if: steps.changesets.outputs.published == 'true' && steps.workflows-version.outputs.version != ''
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ steps.app-token.outputs.token }}
event-type: publish-openapi
client-payload: '{"tag": "${{ steps.workflows-version.outputs.tag }}"}'
115 changes: 0 additions & 115 deletions .github/workflows/publish_release.yml

This file was deleted.

18 changes: 17 additions & 1 deletion .github/workflows/update_debugger_assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,22 @@ jobs:
--js-url "${{ steps.payload.outputs.js_url }}"
--css-url "${{ steps.payload.outputs.css_url }}"

- name: Create changeset for patch version
run: |
# Create a changeset file with a unique name
CHANGESET_FILE=".changeset/update-debugger-assets-$(date +%s).md"
cat > "$CHANGESET_FILE" << 'EOF'
---
"llama-index-workflows": patch
---

Update debugger assets

- JavaScript: ${{ steps.payload.outputs.js_url }}
- CSS: ${{ steps.payload.outputs.css_url }}
EOF
echo "Created changeset: $CHANGESET_FILE"

- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
Expand All @@ -57,7 +73,7 @@ jobs:
body: |
## Update Debugger Assets

This PR updates the workflow debugger assets.
This PR updates the workflow debugger assets and creates a changeset for a patch version bump.

### Changes
- Updated `packages/llama-index-workflows/src/workflows/server/static/index.html`
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,4 @@ cython_debug/
# Generated files
openapi.json
workflow_all_flows.mermaid
node_modules/
11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "llama-agents-workspace",
"version": "1.0.0",
"private": "true",
"license": "MIT",
"scripts": {
"pre-commit-version": "pnpm changeset",
"version": "uv run workflows-dev changeset-version",
"release": "uv run workflows-dev changeset-publish --tag"
}
}
8 changes: 8 additions & 0 deletions packages/llama-index-utils-workflow/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "llama-index-utils-workflow",
"version": "0.5.0",
"private": "false",
"license": "MIT",
"scripts": {
}
}
8 changes: 8 additions & 0 deletions packages/llama-index-workflows/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "llama-index-workflows",
"version": "2.11.1",
"private": "false",
"license": "MIT",
"scripts": {
}
}
4 changes: 3 additions & 1 deletion packages/workflows-dev/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ requires-python = ">=3.9"
dependencies = [
"click>=8.1.7",
"httpx>=0.28.1",
"packaging>=24.1"
"packaging>=24.1",
"pydantic>=2.12.3",
"tomlkit>=0.13.3"
]

[project.scripts]
Expand Down
Loading