Skip to content

ci: allow for prerelease to propagate from full-release action#1426

Merged
joker23 merged 1 commit into
mainfrom
skz/forward-prerelease-workflow
Jun 16, 2026
Merged

ci: allow for prerelease to propagate from full-release action#1426
joker23 merged 1 commit into
mainfrom
skz/forward-prerelease-workflow

Conversation

@joker23

@joker23 joker23 commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

This PR should make it easier to do pre-releases without updating the latest tag in NPM by letting us propagate the prerelease input from the full-release action down to the publish action.


Note

Low Risk
CI workflow wiring only; default behavior unchanged when prerelease is omitted.

Overview
Adds an optional prerelease input to the full-release composite action (default false) and forwards it to publish instead of always passing false, so callers can run pre-releases without moving npm’s latest tag.

When prerelease is true, the publish-docs step is skipped so documentation is not published for pre-releases.

Reviewed by Cursor Bugbot for commit 9a47be5. Bugbot is set up for automated code reviews on this repo. Configure here.

@joker23 joker23 requested a review from a team as a code owner June 8, 2026 14:08
@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

@launchdarkly/js-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 26365 bytes
Compressed size limit: 29000
Uncompressed size: 129044 bytes

@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

@launchdarkly/browser size report
This is the brotli compressed size of the ESM build.
Compressed size: 179579 bytes
Compressed size limit: 200000
Uncompressed size: 831422 bytes

@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

@launchdarkly/js-client-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 38739 bytes
Compressed size limit: 39000
Uncompressed size: 212244 bytes

@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

@launchdarkly/js-client-sdk size report
This is the brotli compressed size of the ESM build.
Compressed size: 31978 bytes
Compressed size limit: 34000
Uncompressed size: 114243 bytes

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

prerelease: ${{ inputs.prerelease }}
dry_run: false
- uses: ./actions/publish-docs
- if: ${{ inputs.prerelease != 'true' }}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am a bit iffy about this one. On one hand, I think it makes sense to hold docs until v1, but on the other, it would be nice to have doc links while we work on official docs.

An alternative here is to introduce different stages of release (something like experimental, prerelease, and production) where experimental stage will not have published docs.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We still have the workflow for publishing docs specifically. So if we want to selectively publish docs we could use that.

Alternatively we could have a "Publish docs for pre-release" checkbox.

Generally speaking I do think it is better to default to not publishing the docs for a pre-release.

Eventually we may want to switch to having versioned docs and just /latest would be used in the actual docs. Then these pre-releases could be prefixed and not typically updates /latest

@joker23 joker23 force-pushed the skz/forward-prerelease-workflow branch from 583a296 to 9a47be5 Compare June 15, 2026 15:20
@joker23 joker23 merged commit 0077ce1 into main Jun 16, 2026
50 checks passed
@joker23 joker23 deleted the skz/forward-prerelease-workflow branch June 16, 2026 16:59
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.

2 participants