-
Notifications
You must be signed in to change notification settings - Fork 1
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
Mismatch between Quick Start in readme and website #356
Comments
@qgustavor what issues are you having?
You are good to go. If you are using pnpm you'll need to do things a little different. |
Is because I messed up publishing a package yesterday and I want to use pr-release to reduce the chance of it happening again. Since I messed up yesterday I want to be sure to do the correct thing now. Running In this page it says "This requires the ability for pr-release to circumvent normal push rules, so an admin environment variable is required." Is it still true after this change in GitHub? Edit: Looks like the readme - i.e. calling the command first - is easier since I don't want to set up branches and have to call the command that set the workflows in a feature branch, it takes more steps. So I tried calling the command: nothing in the repository got changed many times. In every try it returned the following and nothing else - no error message, no success message, nothing: $ npx pr-release actions-yml
Need to install the following packages:
[email protected]
Ok to proceed? (y) y
npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead. |
Hey @qgustavor good points made.
Yeah the order isn't super important, thought I'd set up the tokens/branches first just so they are there before github actions runs. If they aren't the CI job might fail, but that is ok too.
That is suspicious, and definitely a bug if that's the case. It should create some yml files in your
It may not be the case anymore, would love if someone could test that out and get back to me. :) I hope you figure it out, if not, I'll definitely get back to this issue in a few days and see if I can reproduce your issue. Generally having a consistent set of steps on the website / readme would be better, so I'll definitely look into that, also PRs welcome 👍 |
Hey @qgustavor I just tried to repro on Node v16.15.0 and the command worked. But then I jumped into a docker container and ran the same thing there with node:16-alpine and I got the exact behaviour you described. In fact even So I expect there's an environment specific issue with the bin.js execution that I wasn't aware of before, thanks for bringing this to my attention :) Could you let me know as much detail about your machine/environment. Also if you want a work around in the meantime I expect this will work: npm install pr-release -D
node node_modules/pr-release/bin.js actions-yml Also after installing, npm install pr-release -D
npx pr-release --help Once this issue is fixed I recommend uninstall pr-release and always using the latest via npx, but its likely to be a good workaround in the meantime. My theory is the shebang at the top of the bin file doesn't work on your machine: #! /usr/bin/env node
import { main } from './lib/index.js'
main() Would you be able to run this in your terminal and let me know what you get back: /usr/bin/env node --version And also: which node Apologies for this not working out of the box @qgustavor, hopefully we can get you back on track soon. |
Last time I commented I tried running in v18.4.0 on Windows and in on v14.17.2 Debian (WSL 1). I updated both to v18.8.0 and ran again: now it worked. Weird. 😕 Edit: I use nvm and nvm-windows to handle updating. The first places Node.js at |
Ok cool, well I'll keep this open to normalize the quick start / website discrepancies. And I'll make a new issue to investigate why the cli doesn't work in some envs. |
The Quick Start sections in the readme and in the website are a bit different from each other. What are the recommended steps?
The text was updated successfully, but these errors were encountered: