Skip to content

feat: add workflows to publish PR packages for testing#172

Open
arbrandes wants to merge 1 commit intoopenedx:mainfrom
arbrandes:package-prs
Open

feat: add workflows to publish PR packages for testing#172
arbrandes wants to merge 1 commit intoopenedx:mainfrom
arbrandes:package-prs

Conversation

@arbrandes
Copy link
Contributor

@arbrandes arbrandes commented Feb 11, 2026

Description

When a PR is labeled "package-pr", the CI workflow uploads the npm pack tarball as an artifact. A separate workflow (required so that I can run in the upstream context, rather than the fork) then attaches it to a GitHub release tagged pr-[number] and updates the PR description with the download link. A cleanup workflow deletes the release when the PR is closed.

Consequences

There's no way to test this except to merge it to main: it's a Github security restriction, for good reason. So this is what was done, and subsequently reverted with a git reset and subsequent force-push, so as not to pollute history. There's some remaining evidence from #171: the package creation log, and the corresponding cleanup log.

Which is to say, it works. But not without side effects: for each PR package there is an actual Github release created. It is listed in the repo's releases page, and an automatic git tag is created.

LLM usage notice

Completed with assistance from Claude 4.6 Opus.

When a PR is labeled "package-pr", the CI workflow uploads the npm pack
tarball as an artifact. A separate workflow_run-triggered workflow then
attaches it to a GitHub release tagged pr-<number> and updates the PR
description with the download link. A cleanup workflow deletes the
release when the PR is closed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments