Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove plugin version validation in canary and dev builds #9578

Merged
merged 2 commits into from
Mar 13, 2024

Conversation

mattcompiles
Copy link
Contributor

@mattcompiles mattcompiles commented Mar 13, 2024

↪️ Pull Request

Remove plugin version validation in dev/canary/nightly builds as they don't use semver and will always fail.

✔️ PR Todo

  • Added/updated unit tests for this change
  • Filled out test instructions (In case there aren't any unit tests)
  • Included links to related issues/PRs

package.json Outdated
@@ -31,7 +31,7 @@
"test:integration-ci": "yarn workspace @parcel/integration-tests test-ci",
"test": "yarn test:unit && yarn test:integration",
"dev:release": "lerna publish -y --canary --preid dev --dist-tag=dev --exact --force-publish=* --no-git-tag-version --no-push",
"canary:release": "lerna publish -y --canary --preid canary --dist-tag=canary --exact --force-publish=* --no-git-tag-version --no-push",
"canary:release": "PARCEL_CANARY_BUILD=true lerna publish -y --canary --preid canary --dist-tag=canary --exact --force-publish=* --no-git-tag-version --no-push",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm assuming this will be forwarded to the build step?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tested this with a dev-release and it looks good.

@mattcompiles mattcompiles changed the title Remove plugin version validation in canary builds Remove plugin version validation in canary and dev builds Mar 13, 2024
@mattcompiles mattcompiles requested review from devongovett and MonicaOlejniczak and removed request for devongovett March 13, 2024 01:54
@mattcompiles mattcompiles merged commit 81ef511 into v2 Mar 13, 2024
23 of 34 checks passed
@mattcompiles mattcompiles deleted the canary-version-validation branch March 13, 2024 02:22
"dev:release": "lerna publish -y --canary --preid dev --dist-tag=dev --exact --force-publish=* --no-git-tag-version --no-push",
"canary:release": "lerna publish -y --canary --preid canary --dist-tag=canary --exact --force-publish=* --no-git-tag-version --no-push",
"dev:release": "SKIP_PLUGIN_COMPATIBILITY_CHECK=true lerna publish -y --canary --preid dev --dist-tag=dev --exact --force-publish=* --no-git-tag-version --no-push",
"canary:release": "SKIP_PLUGIN_COMPATIBILITY_CHECK=true lerna publish -y --canary --preid canary --dist-tag=canary --exact --force-publish=* --no-git-tag-version --no-push",
Copy link
Member

Choose a reason for hiding this comment

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

wouldn't these need to be set during the build, not during publishing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This works because the actual build is triggered by the prepublishOnly npm hook

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.

3 participants