Skip to content
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

Fix GitHub Actions run by updating Node.js version #70

Closed
wants to merge 20 commits into from

Conversation

sweep-ai[bot]
Copy link
Contributor

@sweep-ai sweep-ai bot commented Dec 27, 2023

PR Feedback (click)

  • 👍 Sweep Did Well
  • 👎 Sweep Needs Improvement
    I created this PR to fix the failing GitHub Actions.## Description
    This PR fixes the GitHub Actions run failure by updating the Node.js version used in the GitHub Actions environment. The failure was caused by a syntax error in the Docusaurus build command, which was due to the use of the nullish coalescing operator '??=' that is not recognized by the current Node.js version.

The fix involves modifying the GitHub Actions workflow file to specify a Node.js version that supports the '??=' operator. This is achieved by using the 'actions/setup-node' action with a version specification of '16.x'.

Summary of Changes

  • Modified '.github/workflows/main.yml' to set up Node.js version '16.x' in the GitHub Actions environment.

Copy link
Contributor Author

sweep-ai bot commented Dec 27, 2023

Rollback Files For Sweep

  • Rollback changes to .github/workflows/main.yml

@sweep-ai sweep-ai bot added the sweep label Dec 27, 2023
Copy link
Contributor Author

sweep-ai bot commented Dec 27, 2023

Sandbox Executions

@pull-request-size pull-request-size bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Dec 27, 2023
@kubbot
Copy link
Contributor

kubbot commented Dec 27, 2023

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Sandbox Executions

Copy link
Contributor Author

sweep-ai bot commented Dec 27, 2023

❌ Could not find files to change

Please join our Discord to report this issue.

Copy link
Contributor Author

sweep-ai bot commented Dec 27, 2023

Sweeping

Fixing PR: track the progress here.

I'm currently fixing this PR to address the following:

The GitHub Actions run failed with the following error logs:

The command:
Run npm run build
yielded the following error:
##[error]Process completed with exit code 1.

Here are the logs:
> [email protected] build /home/runner/work/docs/docs
> docusaurus build

file:///home/runner/work/docs/docs/node_modules/@docusaurus/core/bin/docusaurus.mjs:30
process.env.BABEL_ENV ??= 'development';
^^^

SyntaxError: Unexpected token '??='
at Loader.moduleStrategy (internal/modules/esm/translators.js:149:18)
at async link (internal/modules/esm/module_job.js:67:21)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `docusaurus build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/runner/.npm/_logs/2023-12-27T08_40_52_009Z-debug.log

Making changes according to plan... (step 2/3)

Copy link

netlify bot commented Dec 27, 2023

Deploy Preview for openim-web ready!

Name Link
🔨 Latest commit 4204865
🔍 Latest deploy log https://app.netlify.com/sites/openim-web/deploys/659413b04634ce0008e59034
😎 Deploy Preview https://deploy-preview-70--openim-web.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 configuration.

@cubxxw cubxxw closed this Jan 3, 2024
@cubxxw cubxxw deleted the sweep/github-actions-run_1 branch January 3, 2024 09:15
@openimsdk openimsdk locked and limited conversation to collaborators Jan 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants