ワンクリックで
bump-plugin-e2e
// Use when bumping the @grafana/plugin-e2e version in the create-plugin template. Fetches the latest npm version, updates _package.json, commits, and opens a draft PR.
// Use when bumping the @grafana/plugin-e2e version in the create-plugin template. Fetches the latest npm version, updates _package.json, commits, and opens a draft PR.
| name | bump-plugin-e2e |
| description | Use when bumping the @grafana/plugin-e2e version in the create-plugin template. Fetches the latest npm version, updates _package.json, commits, and opens a draft PR. |
Updates the @grafana/plugin-e2e devDependency in the create-plugin common template to the latest published npm version, then commits and opens a draft PR.
npm view @grafana/plugin-e2e version
Save the output - this is <NEW_VERSION>.
Read packages/create-plugin/templates/common/_package.json and note the current @grafana/plugin-e2e semver range (line ~20).
Note the semver range prefix (e.g. ^, ~, or exact). If the version number already matches <NEW_VERSION>, stop - nothing to do.
Replace only the version number, preserving the existing range prefix exactly.
Example (prefix was ^, keep it ^):
- "@grafana/plugin-e2e": "^3.5.0",
+ "@grafana/plugin-e2e": "^3.6.0",
Use a git worktree so the current workspace is never disturbed.
WORKTREE="/tmp/plugin-tools-e2e-bump-$$"
BRANCH=create-plugin/bump-plugin-e2e-<NEW_VERSION>
git worktree add "$WORKTREE" -b "$BRANCH" main
Edit the _package.json inside the worktree (same relative path: packages/create-plugin/templates/common/_package.json), then commit and push:
git -C "$WORKTREE" add packages/create-plugin/templates/common/_package.json
git -C "$WORKTREE" commit -m "Create Plugin: bump @grafana/plugin-e2e to ^<NEW_VERSION>"
git -C "$WORKTREE" push -u origin "$BRANCH"
git worktree remove "$WORKTREE"
Use the repo PR template structure. Title format: Create Plugin: Bump @grafana/plugin-e2e to <NEW_VERSION>
gh pr create --draft \
--title "Create Plugin: Bump @grafana/plugin-e2e to <NEW_VERSION>" \
--label "patch" \
--label "release" \
--body "$(cat <<'EOF'
**What this PR does / why we need it**:
Bumps `@grafana/plugin-e2e` to `^<NEW_VERSION>` in the create-plugin common template.
**Which issue(s) this PR fixes**:
Fixes #
**Special notes for your reviewer**:
Automated version bump. Check the [@grafana/plugin-e2e changelog](https://github.com/grafana/plugin-tools/blob/main/packages/plugin-e2e/CHANGELOG.md) for notable changes.
EOF
)"
Post the PR URL to the user as a clickable markdown link, e.g. [grafana/plugin-tools#123](https://github.com/grafana/plugin-tools/pull/123).