Skip to content

Fix installation not starting after package manager confirmation.#66

Merged
nathanhleung merged 2 commits intonathanhleung:masterfrom
marlonicus:master
Apr 10, 2020
Merged

Fix installation not starting after package manager confirmation.#66
nathanhleung merged 2 commits intonathanhleung:masterfrom
marlonicus:master

Conversation

@marlonicus
Copy link
Copy Markdown
Contributor

Expected Behaviour
After receiving confirmation from the user that they would like to use yarn as their package manager, the script proceeds to install peer dependencies with yarn.

Current Behaviour
After receiving confirmation to use yarn, the script exits without installation.

Fix
Updated the implementation of promptly's confirm function to use a promise instead of a callback.

@marlonicus
Copy link
Copy Markdown
Contributor Author

I believe that failing test is due to the action not having privileges for the env variables; but let me know if you think otherwise.

@ljharb
Copy link
Copy Markdown
Collaborator

ljharb commented Jan 9, 2020

@nathanhleung PRs from forks can't ever access secrets, so any CI that depends on encrypted env vars will always fail on PRs from forks (ie, from anyone who's not a collaborator).

@vpicone
Copy link
Copy Markdown

vpicone commented Mar 25, 2020

@nathanhleung are you good with this? The yarn check is currently bailing out, meaning packageManager has to be explicitly defined.

@vilanz
Copy link
Copy Markdown

vilanz commented Mar 31, 2020

Experienced the same issue reported originally in #70. This very much deserves a merge.

@nathanhleung
Copy link
Copy Markdown
Owner

Sorry for the delay -- this was buried in my GitHub notifications!

@nathanhleung nathanhleung merged commit 1f007d8 into nathanhleung:master Apr 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants