Skip to content

ci: Fix imports in 'actions/github-script' #3626

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

Merged
merged 1 commit into from
Jun 3, 2022

Conversation

IvanGoncharov
Copy link
Member

I did 'require => import' change together with top-level await change in #3612
I assumed if top-level async is working it means import should also work.
In reality, actions/github-script was passing code to async function
constructor. That means top-level await is not really top-level since it
gets injected into a function and we still execute in CJS context and
import will fail.

I did 'require => import' change together with top-level await change in graphql#3612
I assumed if top-level `async` is working it means `import` should also work.
In reality, `actions/github-script` was passing code to async function
constructor. That means top-level await is not really top-level since it
gets injected into a function and we still execute in CJS context and
`import` will fail.
@netlify
Copy link

netlify bot commented Jun 3, 2022

Deploy Preview for compassionate-pike-271cb3 ready!

Name Link
🔨 Latest commit 2b1f0c0
🔍 Latest deploy log https://app.netlify.com/sites/compassionate-pike-271cb3/deploys/629a89a555a99b00090bd0ce
😎 Deploy Preview https://deploy-preview-3626--compassionate-pike-271cb3.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 settings.

@IvanGoncharov IvanGoncharov merged commit 2fb6eca into graphql:main Jun 3, 2022
@IvanGoncharov IvanGoncharov deleted the kindOnTypes branch June 3, 2022 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant