-
Notifications
You must be signed in to change notification settings - Fork 5.9k
refactor: get version dynamically #5753
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
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #5753 +/- ##
=======================================
Coverage 72.65% 72.65%
=======================================
Files 30 30
Lines 1682 1682
Branches 369 369
=======================================
Hits 1222 1222
Misses 397 397
Partials 63 63 Continue to review full report at Codecov.
|
Okay figured out the issue. we get |
Should we also change the |
Yeah, good call. I'll update it to |
Ready for another review 👀 |
Socket Security Pull Request Report👍 No new dependency issues detected in pull request Pull request report summary
Bot CommandsTo ignore an alert, reply with a comment starting with Powered by socket.dev |
e2e tests failing because it's using a cached version of Code. bumped cache key in secrets. |
ci/build/build-vscode.sh
Outdated
@@ -47,6 +47,7 @@ main() { | |||
# as it is a submodule. | |||
export VSCODE_DISTRO_COMMIT | |||
VSCODE_DISTRO_COMMIT=$(git rev-parse HEAD) | |||
VERSION=$(jq -r .version ../../package.json) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We still need to delete this line otherwise the version we set in the workflow gets overridden!
.github/workflows/publish.yaml
Outdated
@@ -73,6 +91,8 @@ jobs: | |||
timeout-minutes: 10 | |||
env: | |||
GH_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }} | |||
VERSION: ${{ github.event.inputs.version || github.ref_name }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this line since we set version in another step?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so? Don't we need to set it in every step?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm double-checking..i see what you mean now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, you were right - nice catch. Removed!
Description
This PR refactors the release process to dynamically get the release version from the workflow inputs. This means we don't have to open a PR into
main
that modifies thepackage.json
. It also means we'll need to manually modify theCHANGELOG
and the Helm chart after doing a release.Todos
VERSION
Screenshot
Testing Plan
publish
there. uses the correct input