Repository navigation
ci(provider-baileys): add a weekly Baileys update check - #1297
Merged
leifermendez merged 1 commit intoNov 18, 2026
Merged
leifermendez merged 1 commit into
leifermendez merged 1 commit into
Conversation
Every Monday (or on demand with an optional target version) the workflow compares the pinned baileys version with npm `latest`, and when a newer release exists it upgrades the provider, verifies a conflict-free frozen install (resolved version, peer dependencies, engines), syncs BUNDLED_WA_VERSION, builds, runs the provider tests and performs a live WhatsApp handshake. On success it opens a PR; on failure it opens or updates an issue with the outcome of each step. Co-authored-by: Cursor <cursoragent@cursor.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
A weekly workflow (
.github/workflows/baileys-update-check.yml) that checks whether a newerbaileysrelease exists and verifies that it installs and works without conflicts.How it works
Runs every Monday at 07:00 UTC, or manually from Actions → Baileys update check with an optional
versioninput.packages/provider-baileys/package.jsonwith npmlatest(scheduled runs only upgrade when the target was published later). Also reports how many unreleased commits Baileysmasterhas. Skips if a PR for that version is already open.pnpm add baileys@<target> --save-exact.engines.node.BUNDLED_WA_VERSIONwith the newDEFAULT_CONNECTION_CONFIG.version.scripts/ci/baileys-handshake.mjs): opens a socket with a fresh auth state and checks WhatsApp issues a QR instead of405 Connection Failure. Informational only (continue-on-error), since it depends on GitHub runner network/IP.chore(provider-baileys): bump baileys from X to Ywith a results table. Any failure → opens (or comments on) an issue with the outcome of each step.Setup needed
GITHUB_TOKENdon't trigger other workflows: close and reopen the bot PR to run the regular checks.Verified locally
sedsync round-trip and peer-conflict detection (positive and clean cases).version=2.3000.1043857760,result=QR issued (handshake accepted), exit 0.run:block passesbash -nafter YAML parsing.Current status:
7.0.0-rc14is npmlatest, so today's run would report "up to date".