-
Notifications
You must be signed in to change notification settings - Fork 98
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
[TODAY] Github Actions - Genera an error #143
Comments
I'm also seeing the error using If possible it is probably best just to update to using Upgrade to
|
"semantic-release": "^19.0.5" |
semantic_version
Adding semantic_version
works around the issue when using the previous v2 version cycjimmy/semantic-release-action@v2
:
with:
semantic_version: 19
This is according to the README section for the parameter semantic_version where it says:
"It is recommended to manually specify a version of semantic-release to prevent errors caused during the official semantic-release upgrade"
After making the change the log files then show:
[semantic-release] › ℹ Running semantic-release version 19.0.5
instead of:
Error: Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /home/runner/work/_actions/cycjimmy/semantic-release-action/v2/node_modules/semantic-release/index.js
This is caused by BREAKING CHANGES in semantic-release v20. You can temporarily lock the version to v19 to solve this problem. with:
semantic_version: 19 https://github.com/semantic-release/semantic-release/releases/tag/v20.0.0 |
Are you planning any new release of cycjimmy/semantic-release-action to support v20 of semantic-release/semantic-release? |
Yes. But this action uses a Javascript container. Currently, the only Javascript containers available on Github are
|
Thank you for pointing out this compatibility issue! Issue actions/runner#2255 requesting support for According to https://github.com/nodejs/release#release-schedule Node.js 20 is planned for release on 2023-04-18
You are right! Probably this means quite a few months: |
Thanks, I don't have the version on the GitHub Action ✌️ |
avoids "Error [ERR_REQUIRE_ESM]: Must use import to load ES Module" described by cycjimmy/semantic-release-action#143
avoids "Error [ERR_REQUIRE_ESM]: Must use import to load ES Module" described by cycjimmy/semantic-release-action#143
Would it be an option to move to a docker based github action? Then you can adjust your node version quite easily. Or are there any implications that I don't see? |
If you are now back up and running, then I suggest to close this issue. README: Semantic version has been updated to give the correct advice based on the discussions here in this issue. Thanks for reporting this issue. It was very useful to me! |
In case you hadn't seen it No date yet. |
Describe the bug
My Github action has an error
This error occurred today, yesterday everything was fine
Workflow
This is my action
Expected behavior
This action should work in my GitHub
Additional context
I have seen that the semantic-release package a few minutes ago updated to a new version.
The text was updated successfully, but these errors were encountered: