Skip to content

fix: run tests before version bump in release workflow#3

Merged
regevguym merged 1 commit intomondaycom:mainfrom
nymeria-ai:fix/release-test-order
Mar 19, 2026
Merged

fix: run tests before version bump in release workflow#3
regevguym merged 1 commit intomondaycom:mainfrom
nymeria-ai:fix/release-test-order

Conversation

@nymeria-ai
Copy link
Copy Markdown
Contributor

Problem

The release workflow bumps package versions before running tests. The CLI test has a hardcoded version assertion (0.0.1), so after bump it fails:

expected '\''0.0.2'\'' to be '\''0.0.1'\''

From failed run #23291937157.

Fix

  1. Move build + test steps before the version bump — tests should validate code correctness, not version numbers
  2. Make the CLI --version test dynamic — reads expected version from package.json instead of hardcoding

Changes

  • .github/workflows/release.yml — reorder steps: install → build → test → validate → bump → publish
  • packages/cli/tests/cli.test.ts — read version from package.json dynamically

Closes #2

- Move build + test steps before version bump so tests run against
  the current version (not the bumped one)
- Make CLI --version test read expected version from package.json
  instead of hardcoding it, so it stays correct across bumps

Closes mondaycom#2
@regevguym regevguym merged commit 357457c into mondaycom:main Mar 19, 2026
1 check passed
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.

[Bug] release workflow fails — npm version outputs multi-line in workspaces

2 participants