fix: update publish-preview workflow to use tsx instead of ts-node #863
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.
Description
This PR fixes a missed instance in #845 where we migrated from ts-node to tsx. The publish-preview workflow was still using
yarn ts-nodeto execute thegenerate-preview-build-message.tsscript, which would cause the preview build process to fail.The fix updates line 52 in
.github/workflows/publish-preview.ymlto useyarn tsxinstead.This change aligns with the same fix made in the MetaMask/core repository: https://github.com/MetaMask/core/pull/6889/files
Related issues
Fixes: N/A (follow-up to #845)
Manual testing steps
@metamaskbot publish-previewcommentScreenshots/Recordings
N/A - workflow configuration change only
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Switches the publish-preview workflow to run
scripts/generate-preview-build-message.tswithyarn tsxinstead ofyarn ts-node.Written by Cursor Bugbot for commit 41f1e79. This will update automatically on new commits. Configure here.