| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Skip OTP prompts in non-TTY mode (#7209) ## What's the problem this PR addresses? Programmatic calls to `yarn` can *hang* because yarn asks for the otp when the user is not there to provide it. To workaround this one, can call yarn with `stdin: "000000\n"` ## How did you fix it? non-tty mode throws an error now instead of prompting ## Checklist <!--- Don't worry if you miss something, chores are automatically tested. --> <!--- This checklist exists to help you remember doing the chores when you submit a PR. --> <!--- Put an `x` in all the boxes that apply. --> - [x] I have read the [Contributing Guide](https://yarnpkg.com/advanced/contributing). <!-- See https://yarnpkg.com/advanced/contributing#preparing-your-pr-to-be-released for more details. --> <!-- Check with `yarn version check` and fix with `yarn version check -i` --> - [x] I have set the packages that need to be released for my changes to be effective. <!-- The "Testing chores" workflow validates that your PR follows our guidelines. --> <!-- If it doesn't pass, click on it to see details as to what your PR might be missing. --> - [x] I will check that all automated PR checks pass before the PR gets reviewed. | 1 个月前 | |
Skip OTP prompts in non-TTY mode (#7209) ## What's the problem this PR addresses? Programmatic calls to `yarn` can *hang* because yarn asks for the otp when the user is not there to provide it. To workaround this one, can call yarn with `stdin: "000000\n"` ## How did you fix it? non-tty mode throws an error now instead of prompting ## Checklist <!--- Don't worry if you miss something, chores are automatically tested. --> <!--- This checklist exists to help you remember doing the chores when you submit a PR. --> <!--- Put an `x` in all the boxes that apply. --> - [x] I have read the [Contributing Guide](https://yarnpkg.com/advanced/contributing). <!-- See https://yarnpkg.com/advanced/contributing#preparing-your-pr-to-be-released for more details. --> <!-- Check with `yarn version check` and fix with `yarn version check -i` --> - [x] I have set the packages that need to be released for my changes to be effective. <!-- The "Testing chores" workflow validates that your PR follows our guidelines. --> <!-- If it doesn't pass, click on it to see details as to what your PR might be missing. --> - [x] I will check that all automated PR checks pass before the PR gets reviewed. | 1 个月前 | |
feat(plugin-npm): add npm provenance support (#6750) ## What's the problem this PR addresses? <!-- Describe the rationale of your PR. --> <!-- Link all issues that it closes. (Closes/Resolves #xxxx.) --> Hi! I added support for provenance to `yarn npm publish`. Closes #5430 ## How did you fix it? <!-- A detailed description of your implementation. --> Adapted code from npm to produce a provenance signature in supported CI environment. ## Checklist <!--- Don't worry if you miss something, chores are automatically tested. --> <!--- This checklist exists to help you remember doing the chores when you submit a PR. --> <!--- Put an `x` in all the boxes that apply. --> - [x] I have read the [Contributing Guide](https://yarnpkg.com/advanced/contributing). <!-- See https://yarnpkg.com/advanced/contributing#preparing-your-pr-to-be-released for more details. --> <!-- Check with `yarn version check` and fix with `yarn version check -i` --> - [x] I have set the packages that need to be released for my changes to be effective. <!-- The "Testing chores" workflow validates that your PR follows our guidelines. --> <!-- If it doesn't pass, click on it to see details as to what your PR might be missing. --> - [x] I will check that all automated PR checks pass before the PR gets reviewed. ## Next steps - Update https://github.com/npm/documentation/blob/c2efb649816e27d37b37da2b21200e4c9ade0d17/content/packages-and-modules/securing-your-code/generating-provenance-statements.mdx?plain=1#L124 | 1 年前 | |
Sync master with the changes from master | 1 个月前 |
@yarnpkg/plugin-npm
This plugin adds support for downloading packages from the npm registry.
Install
This plugin is included by default in Yarn.
Attribution
Provenance code adapted from npm/cli, under ISC license.