ci: replace auto canary releases with pkg.pr.new#2677
Merged
Conversation
Contributor
|
Hello! 👋 This repository uses Auto for releasing packages using PR labels. ❌ This PR cannot be merged until the following issues are addressed:
🏷️ More info about which labels to use
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the repository’s CI/release process by replacing PR-time canary publishing (via Auto) with label-gated preview publishing through pkg.pr.new, and by ensuring the existing release job only runs on pushes to main.
Changes:
- Added a new
previewworkflow that publishes workspace packages to pkg.pr.new when a PR is labeledpreview. - Gated the
ci.ymlreleasejob to run only onpushevents torefs/heads/main(preventing PR-triggered releases). - Updated contributing docs to describe the new preview flow and to point package-specific docs to the root instructions.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
packages/plugin-e2e/CONTRIBUTING.md |
Replaces Auto canary instructions with pkg.pr.new preview-label workflow guidance. |
CONTRIBUTING.md |
Adds a new “Preview Your Changes Before Release” section documenting pkg.pr.new usage. |
.github/workflows/preview.yml |
Introduces a new PR-labeled preview publishing workflow using pkg-pr-new. |
.github/workflows/ci.yml |
Restricts the release job to pushes on main only. |
joshhunt
previously approved these changes
May 28, 2026
hugohaggmark
previously approved these changes
May 28, 2026
tolzhabayev
reviewed
May 28, 2026
tolzhabayev
reviewed
May 28, 2026
academo
previously approved these changes
May 28, 2026
academo
previously approved these changes
May 28, 2026
@grafana/create-plugin
@grafana/eslint-plugin-plugins
@grafana/plugin-docs-cli
@grafana/plugin-docs-parser
@grafana/plugin-e2e
@grafana/plugin-meta-extractor
@grafana/plugin-types-bundler
@grafana/react-detect
@grafana/sign-plugin
@grafana/tsconfig
commit: |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
5a384ce to
013d17e
Compare
academo
approved these changes
May 28, 2026
4 tasks
Ukochka
pushed a commit
that referenced
this pull request
Jun 9, 2026
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
This is the first of three PRs which will remove Auto from the repo and the need for bypassing gh branch rulesets.
Replaces Auto's PR-time canary publishing with pkg.pr.new, and gates the existing
releasejob to push-to-mainonly..github/workflows/preview.ymlthat publishes affected packages to pkg.pr.new when a PR has thepreviewlabel. Thepkg-pr-new[bot]will post a comment with installable SHA-keyed URL instructions.ci.yml'sreleasejob withevent_name == 'push' && ref == 'refs/heads/main', soauto shipitno longer fires on PR events. Auto's main-branch publishing is untouched and continues until PR 2 lands.Preview Your Changes Before Releasesection to the rootCONTRIBUTING.mdand trimspackages/plugin-e2e/CONTRIBUTING.mdto point to it.Which issue(s) this PR fixes:
related: #2685
related: https://github.com/grafana/grafana-catalog-team/issues/943
Special notes for your reviewer: