Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: npm/cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v10.1.0
Choose a base ref
...
head repository: npm/cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v10.2.0
Choose a head ref

Commits on Sep 9, 2023

  1. Copy the full SHA
    f01ae18 View commit details

Commits on Sep 11, 2023

  1. chore: update benchmark script to send a target spec

    This allows us to specify the base to benchmark against
    which is detected from the base ref of the PR.
    
    This also rewrites the benchmark script using github-script
    since that seemed easier then making sure I got my shell
    substring matching correct.
    lukekarrys committed Sep 11, 2023
    Copy the full SHA
    c8c2cc7 View commit details
  2. Copy the full SHA
    bef82f5 View commit details
  3. Copy the full SHA
    fb1b674 View commit details
  4. Copy the full SHA
    0355153 View commit details
  5. Copy the full SHA
    0d29855 View commit details
  6. Copy the full SHA
    81a460f View commit details
  7. Copy the full SHA
    0d9821c View commit details
  8. 1
    Copy the full SHA
    6ec6ff0 View commit details

Commits on Sep 13, 2023

  1. fix: tolerate null bugs URLs (#6798)

    Currently, if the bugs URL returned from `package.json`, which is
    processed through
    [hosted-git-info](https://github.com/npm/hosted-git-info), is falsy, an
    error is thrown. However, hosted-git-info may well return a falsy bugs
    URL. This can happen when there is no bugs URL in the repo, but
    hosted-git-info tries to infer one, but one cannot be inferred, for
    example if the repository URL is a SourceHut URL. This is described
    here: npm/hosted-git-info#213
    
    For this reason, we should tolerate falsy URLs and fall back to whatever
    is defined in `bugs.js`, in this case being sent to
    https://www.npmjs.com/package/<packageName>.
    vladh authored Sep 13, 2023
    Copy the full SHA
    d46d052 View commit details
  2. Copy the full SHA
    0dc6332 View commit details

Commits on Sep 15, 2023

  1. fix: query with workspace descendents (#6782)

    Fixes a query bug which omits some dependencies in scenarios where a
    workspace has a dependency on another workspace in the project.
    bdehamer authored Sep 15, 2023
    Copy the full SHA
    bef7481 View commit details
  2. Copy the full SHA
    fec08ad View commit details
  3. fix: set engines to ^16.14.0 || >=18.0.0

    BREAKING CHANGE: @npmcli/config now supports node ^16.14.0 || >=18.0.0
    lukekarrys committed Sep 15, 2023
    Copy the full SHA
    92e3f3f View commit details
  4. fix: set engines to ^16.14.0 || >=18.0.0

    BREAKING CHANGE: libnpmfund now supports node ^16.14.0 || >=18.0.0
    lukekarrys committed Sep 15, 2023
    Copy the full SHA
    43241f6 View commit details
  5. chore: set workspace engines

    This align all private workspaces to the same engines as the CLI
    and all public workspaces to ^16.14.0 || >=18.0.0
    lukekarrys committed Sep 15, 2023
    Copy the full SHA
    0270a7d View commit details

Commits on Sep 18, 2023

  1. Copy the full SHA
    8088325 View commit details

Commits on Sep 20, 2023

  1. 5
    Copy the full SHA
    03912db View commit details
  2. Copy the full SHA
    2207628 View commit details
  3. chore: use proxy instead of http-proxy (#6814)

    The proxy package is more spec compliant and works out-of-the-box
    so we no longer have to pass --registry=PROXY to the tests.
    
    The goal here is to make it simpler to help debug #6793.
    lukekarrys authored Sep 20, 2023
    Copy the full SHA
    9ffeb69 View commit details
  4. chore: benchmark script fixes (#6824)

    This passes the token to the github-script action and now skips the PR workflow for forks in the if statement instead of while running the script
    lukekarrys authored Sep 20, 2023
    Copy the full SHA
    6500218 View commit details

Commits on Sep 26, 2023

  1. Copy the full SHA
    3ac703c View commit details

Commits on Sep 27, 2023

  1. feat: add npm sbom command (#6801)

    Signed-off-by: Brian DeHamer <bdehamer@github.com>
    bdehamer authored Sep 27, 2023
    1
    Copy the full SHA
    7c459d2 View commit details
  2. Copy the full SHA
    0860159 View commit details

Commits on Sep 28, 2023

  1. docs: update CONTRIBUTING.md to prevent errors (#6844)

    Update CONTRIBUTING.md
    
    - following the previous steps with a fresh clone of `npm/cli` will error out if your try to run `node . install` because the `@npmcli/config` dep is missing
    - need to run `node ./scripts/resetdeps.js` prior to running any `node .`/`npm` command
    darcyclarke authored Sep 28, 2023
    2
    Copy the full SHA
    68031f2 View commit details

Commits on Oct 2, 2023

  1. deps: @npmcli/agent@2.2.0

    Fixes #6835
    lukekarrys committed Oct 2, 2023
    Copy the full SHA
    284cbfd View commit details
  2. Copy the full SHA
    ba4d099 View commit details
  3. deps: @npmcli/query@3.0.1

    lukekarrys committed Oct 2, 2023
    Copy the full SHA
    3ebc474 View commit details
  4. deps: glob@10.3.10

    lukekarrys committed Oct 2, 2023
    Copy the full SHA
    af93130 View commit details
  5. Copy the full SHA
    0a47af5 View commit details
  6. deps: minipass@7.0.4

    lukekarrys committed Oct 2, 2023
    Copy the full SHA
    39d7f04 View commit details
  7. Copy the full SHA
    ce9089f View commit details
  8. deps: tar@6.2.0

    lukekarrys committed Oct 2, 2023
    Copy the full SHA
    aa6728b View commit details

Commits on Oct 3, 2023

  1. chore: release 10.2.0

    github-actions[bot] authored and lukekarrys committed Oct 3, 2023
    Copy the full SHA
    57a8957 View commit details
Showing with 28,951 additions and 1,881 deletions.
  1. +3 −1 .github/workflows/audit.yml
  2. +61 −53 .github/workflows/benchmark.yml
  3. +8 −3 .github/workflows/ci-libnpmaccess.yml
  4. +8 −3 .github/workflows/ci-libnpmdiff.yml
  5. +8 −3 .github/workflows/ci-libnpmexec.yml
  6. +102 −9 .github/workflows/ci-libnpmfund.yml
  7. +8 −3 .github/workflows/ci-libnpmhook.yml
  8. +8 −3 .github/workflows/ci-libnpmorg.yml
  9. +8 −3 .github/workflows/ci-libnpmpack.yml
  10. +8 −3 .github/workflows/ci-libnpmpublish.yml
  11. +8 −3 .github/workflows/ci-libnpmsearch.yml
  12. +8 −3 .github/workflows/ci-libnpmteam.yml
  13. +8 −3 .github/workflows/ci-libnpmversion.yml
  14. +8 −3 .github/workflows/ci-npmcli-arborist.yml
  15. +102 −9 .github/workflows/ci-npmcli-config.yml
  16. +9 −3 .github/workflows/ci-npmcli-docs.yml
  17. +10 −6 .github/workflows/ci-npmcli-mock-globals.yml
  18. +10 −6 .github/workflows/ci-npmcli-mock-registry.yml
  19. +6 −2 .github/workflows/ci-npmcli-smoke-tests.yml
  20. +9 −3 .github/workflows/ci-release.yml
  21. +15 −5 .github/workflows/ci.yml
  22. +3 −1 .github/workflows/create-node-pr.yml
  23. +3 −1 .github/workflows/pull-request.yml
  24. +6 −2 .github/workflows/release.yml
  25. +10 −10 .release-please-manifest.json
  26. +3 −0 AUTHORS
  27. +40 −0 CHANGELOG.md
  28. +1 −1 CONTRIBUTING.md
  29. +13 −4 DEPENDENCIES.md
  30. +7 −0 docs/lib/content/commands/npm-audit.md
  31. +1 −1 docs/lib/content/commands/npm-doctor.md
  32. +13 −0 docs/lib/content/commands/npm-query.md
  33. +223 −0 docs/lib/content/commands/npm-sbom.md
  34. +3 −0 docs/lib/content/nav.yml
  35. +3 −4 docs/package.json
  36. +6 −1 lib/commands/audit.js
  37. +3 −2 lib/commands/bugs.js
  38. +1 −0 lib/commands/ci.js
  39. +1 −0 lib/commands/dedupe.js
  40. +1 −1 lib/commands/deprecate.js
  41. +1 −1 lib/commands/doctor.js
  42. +1 −0 lib/commands/find-dupes.js
  43. +5 −0 lib/commands/init.js
  44. +1 −0 lib/commands/install.js
  45. +1 −0 lib/commands/link.js
  46. +1 −0 lib/commands/ls.js
  47. +1 −1 lib/commands/outdated.js
  48. +1 −0 lib/commands/prune.js
  49. +14 −1 lib/commands/query.js
  50. +155 −0 lib/commands/sbom.js
  51. +1 −0 lib/commands/update.js
  52. +0 −3 lib/utils/ansi-trim.js
  53. +1 −0 lib/utils/cmd-list.js
  54. +1 −1 lib/utils/format-search-stream.js
  55. +194 −0 lib/utils/sbom-cyclonedx.js
  56. +175 −0 lib/utils/sbom-spdx.js
  57. +4 −9 mock-globals/package.json
  58. +6 −11 mock-registry/package.json
  59. +157 −154 node_modules/@npmcli/agent/lib/agents.js
  60. +2 −6 node_modules/@npmcli/agent/lib/errors.js
  61. +27 −17 node_modules/@npmcli/agent/lib/index.js
  62. +38 −26 node_modules/@npmcli/agent/lib/options.js
  63. +25 −25 node_modules/@npmcli/agent/lib/proxy.js
  64. +0 −84 node_modules/@npmcli/agent/lib/util.js
  65. +7 −12 node_modules/@npmcli/agent/package.json
  66. +42 −18 node_modules/@npmcli/query/lib/index.js
  67. +5 −4 node_modules/@npmcli/query/package.json
  68. +0 −4 node_modules/glob/dist/cjs/package.json
  69. +6 −1 node_modules/glob/dist/{cjs/src → commonjs}/glob.js
  70. 0 node_modules/glob/dist/{cjs/src → commonjs}/has-magic.js
  71. +6 −1 node_modules/glob/dist/{cjs/src → commonjs}/ignore.js
  72. 0 node_modules/glob/dist/{cjs/src → commonjs}/index.js
  73. +1 −0 node_modules/glob/dist/commonjs/package.json
  74. 0 node_modules/glob/dist/{cjs/src → commonjs}/pattern.js
  75. +4 −11 node_modules/glob/dist/{cjs/src → commonjs}/processor.js
  76. 0 node_modules/glob/dist/{cjs/src → commonjs}/walker.js
  77. +3 −0 node_modules/glob/dist/esm/bin.d.mts
  78. +19 −14 node_modules/glob/dist/{cjs/src/bin.js → esm/bin.mjs}
  79. +6 −1 node_modules/glob/dist/{mjs → esm}/glob.js
  80. 0 node_modules/glob/dist/{mjs → esm}/has-magic.js
  81. +6 −1 node_modules/glob/dist/{mjs → esm}/ignore.js
  82. 0 node_modules/glob/dist/{mjs → esm}/index.js
  83. +1 −0 node_modules/glob/dist/esm/package.json
  84. 0 node_modules/glob/dist/{mjs → esm}/pattern.js
  85. +4 −11 node_modules/glob/dist/{mjs → esm}/processor.js
  86. 0 node_modules/glob/dist/{mjs → esm}/walker.js
  87. +0 −4 node_modules/glob/dist/mjs/package.json
  88. +34 −35 node_modules/glob/package.json
  89. +1 −2 node_modules/hosted-git-info/lib/hosts.js
  90. +1 −1 node_modules/hosted-git-info/package.json
  91. +0 −3 node_modules/jackspeak/dist/cjs/package.json
  92. +178 −51 node_modules/jackspeak/dist/{cjs → commonjs}/index.js
  93. +1 −0 node_modules/jackspeak/dist/commonjs/package.json
  94. +10 −2 node_modules/jackspeak/dist/{cjs → commonjs}/parse-args.js
  95. +178 −51 node_modules/jackspeak/dist/{mjs → esm}/index.js
  96. +1 −0 node_modules/jackspeak/dist/esm/package.json
  97. +26 −0 node_modules/jackspeak/dist/esm/parse-args.js
  98. +0 −3 node_modules/jackspeak/dist/mjs/package.json
  99. +0 −19 node_modules/jackspeak/dist/mjs/parse-args.js
  100. +26 −30 node_modules/jackspeak/package.json
  101. +0 −3 node_modules/minipass/dist/cjs/package.json
  102. 0 node_modules/minipass/dist/{cjs → commonjs}/index.js
  103. +1 −0 node_modules/minipass/dist/commonjs/package.json
  104. 0 node_modules/minipass/dist/{mjs → esm}/index.js
  105. +1 −0 node_modules/minipass/dist/esm/package.json
  106. +0 −3 node_modules/minipass/dist/mjs/package.json
  107. +33 −33 node_modules/minipass/package.json
  108. +49 −52 node_modules/npm-package-arg/lib/npa.js
  109. +3 −2 node_modules/npm-package-arg/package.json
  110. +18 −6 node_modules/tar/lib/pack.js
  111. +46 −3 node_modules/tar/lib/parse.js
  112. +1 −1 node_modules/tar/lib/replace.js
  113. +1 −1 node_modules/tar/lib/update.js
  114. +2 −7 node_modules/tar/package.json
  115. +270 −658 package-lock.json
  116. +26 −17 package.json
  117. +3 −1 scripts/create-node-pr.js
  118. +0 −8 scripts/template-oss/_step-node.yml
  119. +14 −0 scripts/template-oss/pkg.json
  120. +6 −1 scripts/template-oss/root.js
  121. +5 −10 smoke-tests/package.json
  122. +5 −4 smoke-tests/tap-snapshots/test/index.js.test.cjs
  123. +16,236 −0 smoke-tests/test/fixtures/max-listeners/package-lock.json
  124. +134 −0 smoke-tests/test/fixtures/max-listeners/package.json
  125. +34 −36 smoke-tests/test/fixtures/setup.js
  126. +48 −0 smoke-tests/test/max-listeners.js
  127. +1 −1 smoke-tests/test/npm-replace-global.js
  128. +6 −20 smoke-tests/test/proxy.js
  129. +1 −0 tap-snapshots/test/lib/commands/completion.js.test.cjs
  130. +4 −0 tap-snapshots/test/lib/commands/config.js.test.cjs
  131. +1 −0 tap-snapshots/test/lib/commands/publish.js.test.cjs
  132. +48 −0 tap-snapshots/test/lib/commands/query.js.test.cjs
  133. +1,410 −0 tap-snapshots/test/lib/commands/sbom.js.test.cjs
  134. +7 −7 tap-snapshots/test/lib/commands/search.js.test.cjs
  135. +103 −16 tap-snapshots/test/lib/docs.js.test.cjs
  136. +52 −52 tap-snapshots/test/lib/npm.js.test.cjs
  137. +1,021 −0 tap-snapshots/test/lib/utils/sbom-cyclonedx.js.test.cjs
  138. +506 −0 tap-snapshots/test/lib/utils/sbom-spdx.js.test.cjs
  139. +11 −3 test/bin/windows-shims.js
  140. +3 −0 test/fixtures/libnpmsearch-stream-result.js
  141. +12 −0 test/lib/commands/audit.js
  142. +5 −0 test/lib/commands/bugs.js
  143. +2 −2 test/lib/commands/hook.js
  144. +1 −1 test/lib/commands/org.js
  145. +58 −0 test/lib/commands/query.js
  146. +503 −0 test/lib/commands/sbom.js
  147. +0 −8 test/lib/utils/ansi-trim.js
  148. +245 −0 test/lib/utils/sbom-cyclonedx.js
  149. +188 −0 test/lib/utils/sbom-spdx.js
  150. +3,799 −0 test/schemas/cyclonedx/bom-1.5.schema.json
  151. +240 −0 test/schemas/cyclonedx/jsf-0.82.schema.json
  152. +621 −0 test/schemas/cyclonedx/spdx.schema.json
  153. +740 −0 test/schemas/spdx/spdx-2.3.schema.json
  154. +19 −0 workspaces/arborist/CHANGELOG.md
  155. +9 −1 workspaces/arborist/lib/arborist/audit.js
  156. +14 −2 workspaces/arborist/lib/query-selector-all.js
  157. +7 −13 workspaces/arborist/package.json
  158. +9 −0 workspaces/arborist/test/arborist/audit.js
  159. +53 −13 workspaces/arborist/test/query-selector-all.js
  160. +18 −0 workspaces/config/CHANGELOG.md
  161. +33 −0 workspaces/config/lib/definitions/definitions.js
  162. +8 −6 workspaces/config/package.json
  163. +9 −0 workspaces/config/tap-snapshots/test/type-description.js.test.cjs
  164. +7 −0 workspaces/libnpmaccess/CHANGELOG.md
  165. +5 −11 workspaces/libnpmaccess/package.json
  166. +8 −0 workspaces/libnpmdiff/CHANGELOG.md
  167. +7 −13 workspaces/libnpmdiff/package.json
  168. +8 −0 workspaces/libnpmexec/CHANGELOG.md
  169. +6 −12 workspaces/libnpmexec/package.json
  170. +14 −0 workspaces/libnpmfund/CHANGELOG.md
  171. +9 −8 workspaces/libnpmfund/package.json
  172. +3 −9 workspaces/libnpmhook/package.json
  173. +7 −0 workspaces/libnpmorg/CHANGELOG.md
  174. +5 −11 workspaces/libnpmorg/package.json
  175. +8 −0 workspaces/libnpmpack/CHANGELOG.md
  176. +6 −12 workspaces/libnpmpack/package.json
  177. +7 −0 workspaces/libnpmpublish/CHANGELOG.md
  178. +5 −11 workspaces/libnpmpublish/package.json
  179. +3 −9 workspaces/libnpmsearch/package.json
  180. +3 −9 workspaces/libnpmteam/package.json
  181. +3 −9 workspaces/libnpmversion/package.json
4 changes: 3 additions & 1 deletion .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -25,10 +25,12 @@ jobs:
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
id: node
with:
node-version: 20.x
check-latest: contains('20.x', '.x')
cache: npm
check-latest: true

- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
114 changes: 61 additions & 53 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@ on:
- '*'
paths:
- lib/**
- workspaces/**/lib/**
issue_comment:
types:
- created
@@ -17,63 +18,70 @@ jobs:
steps:
- name: Incoming Pull Request
if: |
github.event_name == 'pull_request' || (
(
github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name == 'npm/cli'
) || (
github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
github.event.issue.state == 'open' &&
startsWith(github.event.comment.body, '@npm-cli-bot benchmark this')
)
env:
# gh cli uses these env vars for owner/repo/token
GH_REPO: "npm/benchmarks"
GITHUB_TOKEN: ${{ secrets.BENCHMARK_DISPATCH_TOKEN }}
run: |
EVENT_NAME="${{ github.event_name }}"
OWNER="${{ github.event.repository.owner.login }}"
REPO="${{ github.event.repository.name }}"
PR=""
if [[ "$EVENT_NAME" == "pull_request" ]]; then
if [[ "$GITHUB_TOKEN" == "" ]]; then
echo "No auth - from fork pull request, exiting"
exit 0
fi
PR="${{ github.event.pull_request.number }}"
else
PR="${{ github.event.issue.number }}"
SENDER="${{ github.event.comment.user.login }}"
ROLE=$(gh api repos/${OWNER}/${REPO}/collaborators/${SENDER}/permission -q '.permission')
if [[ "$ROLE" != "admin" ]]; then
echo "${SENDER} is ${ROLE}, not an admin, exiting"
exit 0
fi
# add emoji to comment if user is an admin to signal
# benchmark is running
COMMENT_NODE_ID="${{ github.event.comment.node_id }}"
QUERY='mutation ($inputData:AddReactionInput!) {
addReaction (input:$inputData) {
reaction { content }
}
}'
echo '{
"query": "'${QUERY}'",
"variables": {
"inputData": {
"subjectId": "'"${COMMENT_NODE_ID}"'",
"content": "ROCKET"
}
uses: actions/github-script@v6
with:
github-token: ${{ secrets.BENCHMARK_DISPATCH_TOKEN }}
script: |
const {
payload,
eventName,
repo: { owner, repo },
issue: { number },
} = context
if (eventName === 'issue_comment') {
const res = await github.rest.repos.getCollaboratorPermissionLevel({
owner,
repo,
username: payload.comment.user.login,
})
if (res.data.permission !== 'admin') {
core.info(`Commenter is not an admin, exiting`)
return
}
}' | gh api graphql --input -
fi
EVENT="${EVENT_NAME} ${OWNER}/${REPO}#${PR}"
echo '{
"event_type": "'"$EVENT"'",
"client_payload": {
"pr_id": "'"$PR"'",
"repo": "'"$REPO"'",
"owner": "'"$OWNER"'"
// add emoji to comment if user is an admin to signal benchmark is running
await github.rest.reactions.createForIssueComment({
owner,
repo,
comment_id: payload.comment.node_id,
content: 'rocket',
})
}
}' | gh api repos/{owner}/{repo}/dispatches --input -
const pullRequest = payload.pull_request || await github.rest.pulls.get({
owner,
repo,
pull_number: number,
}).then(r => r.data)
core.info(`Pull request: ${pullRequest.number}`)
core.info(`Base ref: ${pullRequest.base.ref}`)
const matchesRelease = pullRequest.base.ref.match(/^release\/v(\d+)$/)
const targetSpec = matchesRelease ? matchesRelease[1] : 'latest'
core.info(`Target spec: ${targetSpec}`)
const eventType = `"${eventName} ${owner}/${repo}#${pullRequest.number}"`
core.info(`Event type: ${eventType}`)
await github.rest.repos.createDispatchEvent({
owner: 'npm',
repo: 'benchmarks',
event_type: eventType,
client_payload: {
owner,
repo,
pr_id: number,
target_spec: targetSpec,
},
})
11 changes: 8 additions & 3 deletions .github/workflows/ci-libnpmaccess.yml
Original file line number Diff line number Diff line change
@@ -34,10 +34,12 @@ jobs:
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
id: node
with:
node-version: 18.x
node-version: 20.x
check-latest: contains('20.x', '.x')
cache: npm
check-latest: true

- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
@@ -68,6 +70,7 @@ jobs:
- 16.x
- 18.0.0
- 18.x
- 20.x
runs-on: ${{ matrix.platform.os }}
defaults:
run:
@@ -81,10 +84,12 @@ jobs:
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
id: node
with:
node-version: ${{ matrix.node-version }}
check-latest: contains(matrix.node-version, '.x')
cache: npm
check-latest: true

- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
11 changes: 8 additions & 3 deletions .github/workflows/ci-libnpmdiff.yml
Original file line number Diff line number Diff line change
@@ -34,10 +34,12 @@ jobs:
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
id: node
with:
node-version: 18.x
node-version: 20.x
check-latest: contains('20.x', '.x')
cache: npm
check-latest: true

- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
@@ -68,6 +70,7 @@ jobs:
- 16.x
- 18.0.0
- 18.x
- 20.x
runs-on: ${{ matrix.platform.os }}
defaults:
run:
@@ -81,10 +84,12 @@ jobs:
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
id: node
with:
node-version: ${{ matrix.node-version }}
check-latest: contains(matrix.node-version, '.x')
cache: npm
check-latest: true

- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
11 changes: 8 additions & 3 deletions .github/workflows/ci-libnpmexec.yml
Original file line number Diff line number Diff line change
@@ -34,10 +34,12 @@ jobs:
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
id: node
with:
node-version: 18.x
node-version: 20.x
check-latest: contains('20.x', '.x')
cache: npm
check-latest: true

- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
@@ -68,6 +70,7 @@ jobs:
- 16.x
- 18.0.0
- 18.x
- 20.x
runs-on: ${{ matrix.platform.os }}
defaults:
run:
@@ -81,10 +84,12 @@ jobs:
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
id: node
with:
node-version: ${{ matrix.node-version }}
check-latest: contains(matrix.node-version, '.x')
cache: npm
check-latest: true

- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
Loading