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.
PR Feedback (click)
I created this PR to fix the failing GitHub Actions.## Description
This PR addresses the GitHub Actions build failure for the OpenIM documentation v3 repository. The build process was failing due to a syntax error caused by the use of the nullish coalescing operator (
??=
) in a Node.js environment that does not support it.The nullish coalescing operator is only available in Node.js versions 14 and above. Although the
amplify.yml
file indicated that Node.js version 15 was being used, the error suggested that an older version of Node.js was being used during the GitHub Actions run.To fix this issue, the
amplify.yml
file was modified to ensure that Node.js version 14 is being used during the GitHub Actions run.Summary of Changes
amplify.yml
file to change the commandnvm install 15 && npm ci
tonvm install 14 && npm ci
. This ensures that Node.js version 14, which supports the nullish coalescing operator, is being used during the GitHub Actions run.