Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LlamaIndexTS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
run-llama
LlamaIndexTS
Commits
74686f57
Unverified
Commit
74686f57
authored
10 months ago
by
Marcus Schiesser
Committed by
GitHub
10 months ago
Browse files
Options
Downloads
Patches
Plain Diff
ci: add version to release PR (#766)
parent
1ebf9e67
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/release.yml
+10
-0
10 additions, 0 deletions
.github/workflows/release.yml
CONTRIBUTING.md
+1
-1
1 addition, 1 deletion
CONTRIBUTING.md
with
11 additions
and
1 deletion
.github/workflows/release.yml
+
10
−
0
View file @
74686f57
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
CONTRIBUTING.md
+
1
−
1
View file @
74686f57
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment