Use .tool-versions file to sync local dev and github actions #955
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This way a version bump in the
.tool-versions
file is automatically used in tests, linters, releases, and local dev. It also helps make it clear which version we expect people to use locally.Note
Add .tool-versions and update GitHub Actions to parse and use its values for pnpm, Node.js, Python, Poetry, and Deno.
.tool-versions
viawistia/[email protected]
incli_tests.yml
,generated_files.yml
,js_sdk_tests.yml
,lint.yml
,publish_packages.yml
,python_sdk_tests.yml
,release.yml
,release_candidates.yml
.${{ env.TOOL_VERSION_* }}
:pnpm
:TOOL_VERSION_PNPM
node-version
:TOOL_VERSION_NODEJS
python-version
:TOOL_VERSION_PYTHON
poetry
installerversion
:TOOL_VERSION_POETRY
deno-version
:TOOL_VERSION_DENO
.tool-versions
specifyingdeno 1.46.3
,nodejs 20.19.5
,pnpm 9.15.5
,python 3.9
,poetry 1.8.3
.Written by Cursor Bugbot for commit 358b62f. This will update automatically on new commits. Configure here.