Skip to content
Snippets Groups Projects
Unverified Commit 74686f57 authored by Marcus Schiesser's avatar Marcus Schiesser Committed by GitHub
Browse files

ci: add version to release PR (#766)

parent 1ebf9e67
No related branches found
No related tags found
No related merge requests found
...@@ -34,10 +34,20 @@ jobs: ...@@ -34,10 +34,20 @@ jobs:
env: env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Get changeset status
id: get-changeset-status
run: |
pnpm changeset status --output .changeset/status.json
new_version=$(jq -r '.releases[] | select(.name == "llamaindex") | .newVersion' < .changeset/status.json)
rm -v .changeset/status.json
echo "new-version=${new_version}" >> "$GITHUB_OUTPUT"
- name: Create Release Pull Request or Publish to npm - name: Create Release Pull Request or Publish to npm
id: changesets id: changesets
uses: changesets/action@v1 uses: changesets/action@v1
with: with:
commit: Release ${{ steps.get-changeset-status.outputs.new-version }}
title: Release ${{ steps.get-changeset-status.outputs.new-version }}
# update version PR with the latest changesets # update version PR with the latest changesets
version: pnpm new-version version: pnpm new-version
# build package and call changeset publish # build package and call changeset publish
......
...@@ -92,7 +92,7 @@ Please send a descriptive changeset for each PR. ...@@ -92,7 +92,7 @@ Please send a descriptive changeset for each PR.
## Publishing (maintainers only) ## Publishing (maintainers only)
The [Release Github Action](.github/workflows/release.yml) is automatically generating and updating a The [Release Github Action](.github/workflows/release.yml) is automatically generating and updating a
PR called "Version Packages". PR called "Release {version}".
This PR will update the `package.json` and `CHANGELOG.md` files of each package according to This PR will update the `package.json` and `CHANGELOG.md` files of each package according to
the current changesets in the [.changeset](.changeset/) folder. the current changesets in the [.changeset](.changeset/) folder.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment