Title: Following the README for type safety prevents/breaks npm's `min-release-age` option · Issue #728 · actions/github-script · GitHub
Open Graph Title: Following the README for type safety prevents/breaks npm's `min-release-age` option · Issue #728 · actions/github-script
X Title: Following the README for type safety prevents/breaks npm's `min-release-age` option · Issue #728 · actions/github-script
Description: Describe the bug The docs describe in the README that to get type support through JSDoc, you can install a dev dep. If you turn on npm 11.10's new min-release-age option (used to help against supply chain attacks), you then will not be a...
Open Graph Description: Describe the bug The docs describe in the README that to get type support through JSDoc, you can install a dev dep. If you turn on npm 11.10's new min-release-age option (used to help against suppl...
X Description: Describe the bug The docs describe in the README that to get type support through JSDoc, you can install a dev dep. If you turn on npm 11.10's new min-release-age option (used to help against s...
Opengraph URL: https://github.com/actions/github-script/issues/728
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Following the README for type safety prevents/breaks npm's `min-release-age` option","articleBody":"**Describe the bug**\n\nThe docs [describe in the README](https://github.com/actions/github-script/blob/3953caf8858d318f37b6cc53a9f5708859b5a7b7/README.md?plain=1#L498-L516) that to get type support through JSDoc, you can install a dev dep.\n\nIf you turn on npm 11.10's new `min-release-age` option (used to help against supply chain attacks), you then will not be able to `npm install` your dependencies, even after a successful `npm update`.\n\nIf you uninstall or don't have the dev dep mentioned in the README, then trying to install it gives that error anyways.\n\nThe error looks like:\n\n```sh-session\nnpm error code 1\nnpm error git dep preparation failed\nnpm error command /usr/local/bin/node /usr/local/share/npm-global/lib/node_modules/npm/bin/npm-cli.js install --force --cache=/home/node/.npm --prefer-offline=false --prefer-online=false --offline=false --before=2026-08-16T23:36:27.301Z --no-progress --no-save --no-audit --include=dev --include=peer --include=optional --no-package-lock-only --no-dry-run\nnpm error Exit prior to config file resolving\nnpm error cause\nnpm error --min-release-age cannot be provided when using --before\n```\n\n**To Reproduce**\nSteps to reproduce the behavior:\n1. Add `min-release-age=1` to `.npmrc`\n2. `npm i -D @actions/github-script@github:actions/github-script\n3. `npm clean-install`\n4. See error above\n\n**Expected behavior**\nI would expect to be able to use npm's `min-release-age` option when only using types from this package.","author":{"url":"https://github.com/dslatkin","@type":"Person","name":"dslatkin"},"datePublished":"2026-08-17T23:47:55Z","url":"https://github.com/actions/github-script/issues/728"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:75a99780-1edf-5e55-2b7e-d5b5c8d2186a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A92C:1D86C4:2F57F6C:3C32531:6B01C364 |
| html-safe-nonce | a1b87b33e56b06d6fd32628dc8ce9ced033020b15a8bf35cd545467ddab6f096 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTJDOjFEODZDNDoyRjU3RjZDOjNDMzI1MzE6NkIwMUMzNjQiLCJ2aXNpdG9yX2lkIjoiMzYyNzgwNzM4ODkzNDk4MDQ1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1909b098abc9b4f955cfcdb31920e4029c3fa3993df884cccedac8f0b1c599ec |
| hovercard-subject-tag | issue:5176439791 |
| github-keyboard-shortcuts | repository,issues,actions,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/actions/github-script/728/issue_layout |
| twitter:image | https://opengraph.githubassets.com/87446bdc77071215db49dc164290188c04857c768d0f2753e03385b0675301a2/actions/github-script/issues/728 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/87446bdc77071215db49dc164290188c04857c768d0f2753e03385b0675301a2/actions/github-script/issues/728 |
| og:image:alt | Describe the bug The docs describe in the README that to get type support through JSDoc, you can install a dev dep. If you turn on npm 11.10's new min-release-age option (used to help against suppl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dslatkin |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/actions/github-script git https://github.com/actions/github-script.git |
| octolytics-dimension-user_id | 44036562 |
| octolytics-dimension-user_login | actions |
| octolytics-dimension-repository_id | 205262760 |
| octolytics-dimension-repository_nwo | actions/github-script |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 205262760 |
| octolytics-dimension-repository_network_root_nwo | actions/github-script |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width