ci(versioning): version packages with nx and remove reference to lerna.json in workflow

This commit is contained in:
Jack Westbrook
2025-03-03 11:55:42 +01:00
parent 1588e42c54
commit ec8b528610
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -145,7 +145,7 @@ jobs:
- name: Add package.json changes
run: |
git add package.json lerna.json yarn.lock packages public
git add package.json yarn.lock packages public
test -e e2e/test-plugins && git add e2e/test-plugins
git commit -m "Update version to ${{ inputs.version }}"
+1 -2
View File
@@ -34,7 +34,6 @@ func main() {
".yarnrc.yml",
"nx.json",
"project.json",
"lerna.json",
"**/package.json",
"**/yarn.lock",
},
@@ -70,7 +69,7 @@ func WithUpdatedVersion(d *dagger.Client, src *dagger.Directory, nodeVersion, ve
WithWorkdir("/src").
WithExec([]string{"yarn", "install"}).
WithExec([]string{"npm", "version", version, "--no-git-tag-version"}).
WithExec([]string{"yarn", "run", "lerna", "version", version, "--no-push", "--no-git-tag-version", "--force-publish", "--exact", "--yes"}).
WithExec([]string{"yarn", "nx", "release", "version", version, "--no-git-commit", "--no-git-tag", "--no-stage-changes", "--group grafanaPackages"}).
WithExec([]string{"yarn", "install"}).
WithExec([]string{"yarn", "prettier:write"}).
Directory("/src").