Skip to content

Commit

Permalink
feat(bumpversion): bump both grafana packages and core plugins versio…
Browse files Browse the repository at this point in the history
…n groups
  • Loading branch information
jackw committed Apr 11, 2024
1 parent 7c7460f commit 399fad2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions bump-version/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions bump-version/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class BumpVersion extends Action {
await exec('yarn', ['install'])
// Update root package.json version
await exec('npm', ['version', version, '--no-git-tag-version'])
// Update all npm packages package.json version that use fixed versioning strategy (aligned with grafana version)
// Update the npm packages and plugins package.json versions to align with grafana version.
await exec('yarn', [
'nx',
'release',
Expand All @@ -71,9 +71,10 @@ class BumpVersion extends Action {
'--no-git-commit',
'--no-git-tag',
'--no-stage-changes',
'--group',
'fixed',
'--groups',
'grafanaPackages,plugins',
])

try {
//regenerate yarn.lock file
//await exec('npm', ['install', '-g', 'corepack'])
Expand All @@ -96,7 +97,7 @@ class BumpVersion extends Action {
const body = `Executed:\n
npm version ${version} --no-git-tag-version\n
yarn install\n
yarn nx release version ${version} --no-git-commit --no-git-tag --no-stage-changes --group fixed\n
yarn nx release version ${version} --no-git-commit --no-git-tag --no-stage-changes --groups grafanaPackages,plugins\n
yarn install --mode update-lockfile
`
await octokit.octokit.pulls.create({
Expand Down

0 comments on commit 399fad2

Please sign in to comment.