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

build: remove Version step from release workflow #7032

Merged
merged 2 commits into from
Jun 26, 2024

Conversation

ricokahler
Copy link
Contributor

@ricokahler ricokahler commented Jun 26, 2024

Description

The Version step in the release.yml workflow was added so that the build could be ran with updated package.json version but this was causing an issue with mismatched types and packages causing the build when installing after the version bump. it's not strictly necessary so we'll be removing this as a result.

CleanShot 2024-06-26 at 17 10 31@2x

What to review

Do we rely on the Version step at all? I believe we have measures in place that get the monorepo version in other ways so this version step should not be necessary.

Had a sync with @rexxars and we found that if the environment variable PKG_VERSION is set, it circumvents the needs to run lerna version prior to running the build.

Testing

In order to test the above theory, I ran the build locally with the environment variable PKG_VERSION set to a different version than in the package.json and looked at the build result. All places where the version was referenced reflected the PKG_VERSION instead.

Notes for release

N/A - internal build fix

@ricokahler ricokahler requested a review from a team as a code owner June 26, 2024 22:11
@ricokahler ricokahler requested review from cngonzalez and removed request for a team June 26, 2024 22:11
Copy link

vercel bot commented Jun 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
page-building-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 26, 2024 11:13pm
performance-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 26, 2024 11:13pm
test-compiled-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 26, 2024 11:13pm
test-next-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 26, 2024 11:13pm
test-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 26, 2024 11:13pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
studio-workshop ⬜️ Ignored (Inspect) Visit Preview Jun 26, 2024 11:13pm

Copy link
Contributor

No changes to documentation

Copy link
Contributor

github-actions bot commented Jun 26, 2024

Component Testing Report Updated Jun 26, 2024 11:23 PM (UTC)

File Status Duration Passed Skipped Failed
comments/CommentInput.spec.tsx ✅ Passed (Inspect) 37s 15 0 0
formBuilder/ArrayInput.spec.tsx ✅ Passed (Inspect) 7s 3 0 0
formBuilder/inputs/PortableText/Annotations.spec.tsx ✅ Passed (Inspect) 26s 6 0 0
formBuilder/inputs/PortableText/copyPaste/CopyPaste.spec.tsx ✅ Passed (Inspect) 33s 11 7 0
formBuilder/inputs/PortableText/Decorators.spec.tsx ✅ Passed (Inspect) 15s 6 0 0
formBuilder/inputs/PortableText/DisableFocusAndUnset.spec.tsx ✅ Passed (Inspect) 9s 3 0 0
formBuilder/inputs/PortableText/DragAndDrop.spec.tsx ✅ Passed (Inspect) 30s 4 0 0
formBuilder/inputs/PortableText/FocusTracking.spec.tsx ✅ Passed (Inspect) 37s 15 0 0
formBuilder/inputs/PortableText/Input.spec.tsx ✅ Passed (Inspect) 1m 18s 21 0 0
formBuilder/inputs/PortableText/ObjectBlock.spec.tsx ✅ Passed (Inspect) 1m 6s 18 0 0
formBuilder/inputs/PortableText/PresenceCursors.spec.tsx ✅ Passed (Inspect) 7s 3 9 0
formBuilder/inputs/PortableText/RangeDecoration.spec.tsx ✅ Passed (Inspect) 22s 9 0 0
formBuilder/inputs/PortableText/Styles.spec.tsx ✅ Passed (Inspect) 15s 6 0 0
formBuilder/inputs/PortableText/Toolbar.spec.tsx ❌ Failed (Inspect) 1m 11s 20 0 1
formBuilder/tree-editing/TreeEditing.spec.tsx ✅ Passed (Inspect) 54s 18 0 0

the `version` step was added so that the build
could be ran with updated package.json version
but this was cause an issue when installing after
the version bump. it's not strictly necessary so
we'll be removing this as a result
@ricokahler ricokahler added this pull request to the merge queue Jun 26, 2024
Merged via the queue into next with commit ddfca41 Jun 26, 2024
42 checks passed
@ricokahler ricokahler deleted the fix/remove-version-step-from-release branch June 26, 2024 23:17
ricokahler added a commit that referenced this pull request Jun 27, 2024
* build: remove `Version` step from release workflow

the `version` step was added so that the build
could be ran with updated package.json version
but this was cause an issue when installing after
the version bump. it's not strictly necessary so
we'll be removing this as a result

* fix: define PKG_VERSION from workflow input
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