diff --git a/.github/workflows/python_release.yml b/.github/workflows/release.yml similarity index 68% rename from .github/workflows/python_release.yml rename to .github/workflows/release.yml index 043c93c09..a02d621c1 100644 --- a/.github/workflows/python_release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: Python Release +name: Release on: pull_request: @@ -13,10 +13,6 @@ on: env: POETRY_VERSION: "1.4.2" -defaults: - run: - working-directory: python - jobs: if_release: if: | @@ -28,6 +24,7 @@ jobs: id-token: write steps: - uses: actions/checkout@v3 + # Python Build - name: Install poetry run: pipx install poetry==$POETRY_VERSION - name: Set up Python 3.11 @@ -36,7 +33,18 @@ jobs: python-version: "3.11" cache: "poetry" - name: Build project for distribution - run: poetry build + run: cd python && poetry build + # JS Build + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: "yarn" + cache-dependency-path: "js/yarn.lock" + - name: Install dependencies + run: cd js && yarn install --immutable + - name: Build + run: cd js && yarn run build - name: Check Version id: check-version run: | @@ -44,7 +52,9 @@ jobs: - name: Create Release uses: ncipollo/release-action@v1 with: - artifacts: "python/dist/*" + artifacts: | + - "python/dist/*" + - "js/dist/*" token: ${{ secrets.GITHUB_TOKEN }} draft: false generateReleaseNotes: true @@ -53,4 +63,4 @@ jobs: - name: Publish package distributions to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: - packages-dir: "python/dist" + packages-dir: "python/dist" \ No newline at end of file diff --git a/js/package.json b/js/package.json index 2c84489c4..b631c55fc 100644 --- a/js/package.json +++ b/js/package.json @@ -1,6 +1,6 @@ { "name": "langsmith", - "version": "0.0.6", + "version": "0.0.7", "description": "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform.", "files": [ "dist/", diff --git a/python/pyproject.toml b/python/pyproject.toml index 2882d8034..c1602e99f 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "langsmith" -version = "0.0.6" +version = "0.0.7" description = "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform." authors = ["LangChain"] license = "MIT"