ci(r): attach webR wasm assets to r/v* GitHub releases - #318
Merged
Merged
Conversation
shinylive's only path for installing a GitHub-hosted R package is a release
tagged with the installed RemoteRef carrying library.data* and
library.js.metadata assets. shinyreact has no such release, so a
{shinylive-r} block using it aborts at render time.
Adds release-r-wasm.yaml, which calls r-wasm/actions'
release-file-system-image reusable workflow on every published r/v* release,
pinned to the webR version shinylive ships (v0.6.0 / R 4.6.0).
Refs #268
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.
Closes #268.
shinylive:::get_github_wasm_assets()is the only path shinylive has for aGitHub-installed R package: it looks up
/repos/posit-dev/shinyreact/releases/tags/<RemoteRef>and wantslibrary.data*+library.js.metadataassets on it. This repo has no Rrelease, so any
{shinylive-r}block using shinyreact aborts at render.release-r-wasm.yamlcalls r-wasm/actions'release-file-system-imagereusable workflow on every published
r/v*release. It builds a webRfilesystem image of
pkg-r/plus dependencies and uploads the two assets.Two repo-specific details:
pkg-r/, sopackages: local::./pkg-r.pak::pak("posit-dev/shinyreact/pkg-r@r/v0.1.0")recordsRemoteRef: r/v0.1.0. Verified that pak parses a slashed ref and thatgh::gh()resolvesreleases/tags/py/v0.1.0against this repo, so theexisting
r/vprefix convention holds.webr-imageis pinned toghcr.io/r-wasm/webr:v0.6.0— the webR shinyliveships (R 4.6.0). An image built against another R version won't load.
releaseevents only run workflows from the default branch, so this has tomerge before the
r/v0.1.0tag and release are created. That unblocksschloerke/presentation-2026-09-15-posit-conf-shinyreact#7.
If this turns out to need more work, the tag and release can be deleted and
re-cut.