+
Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.

fix(ci): fix the version update scripts for pre-releases #3484

Merged
merged 1 commit into from
Oct 25, 2022
Merged

Conversation

leops
Copy link
Contributor

@leops leops commented Oct 25, 2022

Summary

The nightly builds for the LSP are failing since it refers to the version update script using an incorrect name, this PR fixes the path this script is accessed with to make the build work.
I also restored this script with the correct logic for the versioning scheme of the VS Marketplace, since it seems it got mixed up with the logic used to generate version numbers for npm (the difference is that npm supports semver pre-release tags while VSCode doesn't).
Finally I also changed the version update script used in the rome npm package to only print the version name without prefixing it with an environment variable name, since this value is exported as version in the npm release script while it gets exported as rome_version in the LSP release script.

Test Plan

Manually run the release_cli and release_lsp workflows from this branch:

@leops leops requested a review from a team October 25, 2022 12:31
@netlify
Copy link

netlify bot commented Oct 25, 2022

Deploy Preview for rometools ready!

Name Link
🔨 Latest commit 59339a8
🔍 Latest deploy log https://app.netlify.com/sites/rometools/deploys/6357d7357fe928000924c721
😎 Deploy Preview https://deploy-preview-3484--rometools.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Contributor

@ematipico ematipico left a comment

Choose a reason for hiding this comment

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

We have to update the script inside js-api/scripts too

@leops
Copy link
Contributor Author

leops commented Oct 25, 2022

We have to update the script inside js-api/scripts too

I did check it for any issues too but I haven't found any, I could dispatch a manual run of that workflow too to ensure it works correctly

@ematipico
Copy link
Contributor

We have to update the script inside js-api/scripts too

I did check it for any issues too but I haven't found any, I could dispatch a manual run of that workflow too to ensure it works correctly

I mean, js-api/scripts/update-nightly-version.mjs was a copy of the one we have for npm/rome, same for the workflow. I thought we had to update that one too. But if that works, I am happy with that

@leops
Copy link
Contributor Author

leops commented Oct 25, 2022

We have to update the script inside js-api/scripts too

I did check it for any issues too but I haven't found any, I could dispatch a manual run of that workflow too to ensure it works correctly

I mean, js-api/scripts/update-nightly-version.mjs was a copy of the one we have for npm/rome, same for the workflow. I thought we had to update that one too. But if that works, I am happy with that

I only needed to change the script for npm/rome because it's called from both the release_cli and release_lsp workflows in a different context, but that's not the case for the script in js-api since it's only used in the corresponding workflow

@leops leops merged commit 6ceaacc into main Oct 25, 2022
@leops leops deleted the fix/ci-lsp branch October 25, 2022 15:47
@leops leops added the A-Tooling Area: our own build, development, and release tooling label Oct 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Tooling Area: our own build, development, and release tooling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载