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/make-fetch-happen
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 27f3e2a929a0e06a127d4556ef93877b73e37f69
Choose a base ref
...
head repository: npm/make-fetch-happen
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: bb3a5f55e78e4b0ef61a95756b484379a6bcaf7c
Choose a head ref

Commits on Jul 19, 2022

  1. Copy the full SHA
    dae6384 View commit details
  2. chore(main): release 10.2.0 (#165)

    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    github-actions[bot] authored Jul 19, 2022
    Copy the full SHA
    ee20fc2 View commit details

Commits on Aug 15, 2022

  1. fix: linting (#166)

    wraithgar authored Aug 15, 2022
    Copy the full SHA
    e9a2a51 View commit details
  2. chore(main): release 10.2.1 (#167)

    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    github-actions[bot] authored Aug 15, 2022
    Copy the full SHA
    ea71110 View commit details

Commits on Aug 23, 2022

  1. chore: bump @npmcli/template-oss from 3.5.0 to 3.6.0

    Bumps [@npmcli/template-oss](https://github.com/npm/template-oss) from 3.5.0 to 3.6.0.
    - [Release notes](https://github.com/npm/template-oss/releases)
    - [Changelog](https://github.com/npm/template-oss/blob/main/CHANGELOG.md)
    - [Commits](npm/template-oss@v3.5.0...v3.6.0)
    
    ---
    updated-dependencies:
    - dependency-name: "@npmcli/template-oss"
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and lukekarrys committed Aug 23, 2022
    Copy the full SHA
    2296d79 View commit details
  2. Copy the full SHA
    2631db8 View commit details

Commits on Sep 21, 2022

  1. chore: bump @npmcli/template-oss from 3.6.0 to 4.3.2

    Bumps [@npmcli/template-oss](https://github.com/npm/template-oss) from 3.6.0 to 4.3.2.
    - [Release notes](https://github.com/npm/template-oss/releases)
    - [Changelog](https://github.com/npm/template-oss/blob/main/CHANGELOG.md)
    - [Commits](npm/template-oss@v3.6.0...v4.3.2)
    
    ---
    updated-dependencies:
    - dependency-name: @npmcli/template-oss
      dependency-type: direct:development
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and lukekarrys committed Sep 21, 2022
    Copy the full SHA
    729bc74 View commit details
  2. feat!: postinstall for dependabot template-oss PR

    BREAKING CHANGE: `make-fetch-happen` is now compatible with the following semver range for node: `^14.17.0 || ^16.13.0 || >=18.0.0`
    lukekarrys committed Sep 21, 2022
    Copy the full SHA
    c293053 View commit details

Commits on Sep 30, 2022

  1. chore: bump @npmcli/template-oss from 4.3.2 to 4.4.4

    Bumps [@npmcli/template-oss](https://github.com/npm/template-oss) from 4.3.2 to 4.4.4.
    - [Release notes](https://github.com/npm/template-oss/releases)
    - [Changelog](https://github.com/npm/template-oss/blob/main/CHANGELOG.md)
    - [Commits](npm/template-oss@v4.3.2...v4.4.4)
    
    ---
    updated-dependencies:
    - dependency-name: @npmcli/template-oss
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and lukekarrys committed Sep 30, 2022
    Copy the full SHA
    6e5077d View commit details
  2. Copy the full SHA
    2aeaae5 View commit details

Commits on Oct 4, 2022

  1. Copy the full SHA
    d63de44 View commit details

Commits on Oct 10, 2022

  1. chore: bump @npmcli/template-oss from 4.4.4 to 4.5.1

    Bumps [@npmcli/template-oss](https://github.com/npm/template-oss) from 4.4.4 to 4.5.1.
    - [Release notes](https://github.com/npm/template-oss/releases)
    - [Changelog](https://github.com/npm/template-oss/blob/main/CHANGELOG.md)
    - [Commits](npm/template-oss@v4.4.4...v4.5.1)
    
    ---
    updated-dependencies:
    - dependency-name: @npmcli/template-oss
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and lukekarrys committed Oct 10, 2022
    Copy the full SHA
    654f976 View commit details
  2. Copy the full SHA
    672caac View commit details

Commits on Oct 13, 2022

  1. deps: bump cacache from 16.1.3 to 17.0.0 (#184)

    BREAKING CHANGE: this module no longer attempts to change file ownership automatically
    dependabot[bot] authored Oct 13, 2022
    Copy the full SHA
    33d972a View commit details
  2. chore: fix flaky test (#185)

    nlf authored Oct 13, 2022
    Copy the full SHA
    727d805 View commit details
  3. chore: release 11.0.0 (#178)

    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    github-actions[bot] authored Oct 13, 2022
    Copy the full SHA
    db8f03c View commit details

Commits on Oct 14, 2022

  1. chore: bump @npmcli/eslint-config from 3.1.0 to 4.0.0

    Bumps [@npmcli/eslint-config](https://github.com/npm/eslint-config) from 3.1.0 to 4.0.0.
    - [Release notes](https://github.com/npm/eslint-config/releases)
    - [Changelog](https://github.com/npm/eslint-config/blob/main/CHANGELOG.md)
    - [Commits](npm/eslint-config@v3.1.0...v4.0.0)
    
    ---
    updated-dependencies:
    - dependency-name: "@npmcli/eslint-config"
      dependency-type: direct:development
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and lukekarrys committed Oct 14, 2022
    Copy the full SHA
    7cfd1a6 View commit details

Commits on Oct 17, 2022

  1. deps: bump ssri from 9.0.1 to 10.0.0

    Bumps [ssri](https://github.com/npm/ssri) from 9.0.1 to 10.0.0.
    - [Release notes](https://github.com/npm/ssri/releases)
    - [Changelog](https://github.com/npm/ssri/blob/main/CHANGELOG.md)
    - [Commits](npm/ssri@v9.0.1...v10.0.0)
    
    ---
    updated-dependencies:
    - dependency-name: ssri
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and lukekarrys committed Oct 17, 2022
    Copy the full SHA
    9c16d84 View commit details
  2. deps: bump minipass-fetch from 2.1.2 to 3.0.0

    Bumps [minipass-fetch](https://github.com/npm/minipass-fetch) from 2.1.2 to 3.0.0.
    - [Release notes](https://github.com/npm/minipass-fetch/releases)
    - [Changelog](https://github.com/npm/minipass-fetch/blob/main/CHANGELOG.md)
    - [Commits](npm/minipass-fetch@v2.1.2...v3.0.0)
    
    ---
    updated-dependencies:
    - dependency-name: minipass-fetch
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and lukekarrys committed Oct 17, 2022
    Copy the full SHA
    ebd86b2 View commit details
  3. chore: release 11.0.1 (#189)

    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    github-actions[bot] authored Oct 17, 2022
    Copy the full SHA
    10ff2e4 View commit details
  4. chore: bump @npmcli/template-oss from 4.5.1 to 4.6.1

    Bumps [@npmcli/template-oss](https://github.com/npm/template-oss) from 4.5.1 to 4.6.1.
    - [Release notes](https://github.com/npm/template-oss/releases)
    - [Changelog](https://github.com/npm/template-oss/blob/main/CHANGELOG.md)
    - [Commits](npm/template-oss@v4.5.1...v4.6.1)
    
    ---
    updated-dependencies:
    - dependency-name: @npmcli/template-oss
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and lukekarrys committed Oct 17, 2022
    Copy the full SHA
    94f4677 View commit details
  5. Copy the full SHA
    6818566 View commit details

Commits on Oct 19, 2022

  1. chore: bump @npmcli/template-oss from 4.6.1 to 4.6.2

    Bumps [@npmcli/template-oss](https://github.com/npm/template-oss) from 4.6.1 to 4.6.2.
    - [Release notes](https://github.com/npm/template-oss/releases)
    - [Changelog](https://github.com/npm/template-oss/blob/main/CHANGELOG.md)
    - [Commits](npm/template-oss@v4.6.1...v4.6.2)
    
    ---
    updated-dependencies:
    - dependency-name: @npmcli/template-oss
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and lukekarrys committed Oct 19, 2022
    Copy the full SHA
    068057a View commit details
  2. Copy the full SHA
    1f066fa View commit details

Commits on Oct 28, 2022

  1. chore: bump @npmcli/template-oss from 4.6.2 to 4.8.0

    Bumps [@npmcli/template-oss](https://github.com/npm/template-oss) from 4.6.2 to 4.8.0.
    - [Release notes](https://github.com/npm/template-oss/releases)
    - [Changelog](https://github.com/npm/template-oss/blob/main/CHANGELOG.md)
    - [Commits](npm/template-oss@v4.6.2...v4.8.0)
    
    ---
    updated-dependencies:
    - dependency-name: @npmcli/template-oss
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and lukekarrys committed Oct 28, 2022
    Copy the full SHA
    a750dd5 View commit details
  2. Copy the full SHA
    72ae516 View commit details

Commits on Nov 12, 2022

  1. chore: bump @npmcli/template-oss from 4.8.0 to 4.10.0

    Bumps [@npmcli/template-oss](https://github.com/npm/template-oss) from 4.8.0 to 4.10.0.
    - [Release notes](https://github.com/npm/template-oss/releases)
    - [Changelog](https://github.com/npm/template-oss/blob/main/CHANGELOG.md)
    - [Commits](npm/template-oss@v4.8.0...v4.10.0)
    
    ---
    updated-dependencies:
    - dependency-name: @npmcli/template-oss
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and lukekarrys committed Nov 12, 2022
    Copy the full SHA
    d4aced6 View commit details
  2. Copy the full SHA
    dcdb100 View commit details

Commits on Dec 7, 2022

  1. deps: bump minipass from 3.3.6 to 4.0.0

    Bumps [minipass](https://github.com/isaacs/minipass) from 3.3.6 to 4.0.0.
    - [Release notes](https://github.com/isaacs/minipass/releases)
    - [Commits](isaacs/minipass@v3.3.6...v4.0.0)
    
    ---
    updated-dependencies:
    - dependency-name: minipass
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and lukekarrys committed Dec 7, 2022
    Copy the full SHA
    77018ff View commit details
  2. chore: release 11.0.2 (#195)

    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    github-actions[bot] authored Dec 7, 2022
    Copy the full SHA
    d782dee View commit details

Commits on Dec 10, 2022

  1. chore: bump @npmcli/template-oss from 4.10.0 to 4.11.0

    Bumps [@npmcli/template-oss](https://github.com/npm/template-oss) from 4.10.0 to 4.11.0.
    - [Release notes](https://github.com/npm/template-oss/releases)
    - [Changelog](https://github.com/npm/template-oss/blob/main/CHANGELOG.md)
    - [Commits](npm/template-oss@v4.10.0...v4.11.0)
    
    ---
    updated-dependencies:
    - dependency-name: @npmcli/template-oss
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and lukekarrys committed Dec 10, 2022
    Copy the full SHA
    7b3b9e9 View commit details
  2. Copy the full SHA
    bfdc042 View commit details

Commits on Jan 25, 2023

  1. chore: bump @npmcli/template-oss from 4.11.0 to 4.11.3

    Bumps [@npmcli/template-oss](https://github.com/npm/template-oss) from 4.11.0 to 4.11.3.
    - [Release notes](https://github.com/npm/template-oss/releases)
    - [Changelog](https://github.com/npm/template-oss/blob/main/CHANGELOG.md)
    - [Commits](npm/template-oss@v4.11.0...v4.11.3)
    
    ---
    updated-dependencies:
    - dependency-name: @npmcli/template-oss
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and lukekarrys committed Jan 25, 2023
    Copy the full SHA
    5f0521c View commit details
  2. Copy the full SHA
    c43459c View commit details

Commits on Feb 2, 2023

  1. Copy the full SHA
    5807162 View commit details
  2. deps: remove unused dependencies (#212)

    minipass-collect
    mkdirp
    rimraf
    wraithgar authored Feb 2, 2023
    Copy the full SHA
    fb01043 View commit details
  3. chore: release 11.0.3

    github-actions[bot] authored and wraithgar committed Feb 2, 2023
    Copy the full SHA
    cd1ddb4 View commit details

Commits on Feb 8, 2023

  1. chore: bump @npmcli/template-oss from 4.11.3 to 4.11.4

    Bumps [@npmcli/template-oss](https://github.com/npm/template-oss) from 4.11.3 to 4.11.4.
    - [Release notes](https://github.com/npm/template-oss/releases)
    - [Changelog](https://github.com/npm/template-oss/blob/main/CHANGELOG.md)
    - [Commits](npm/template-oss@v4.11.3...v4.11.4)
    
    ---
    updated-dependencies:
    - dependency-name: @npmcli/template-oss
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and lukekarrys committed Feb 8, 2023
    Copy the full SHA
    d47f8b4 View commit details
  2. Copy the full SHA
    8b906fd View commit details

Commits on Mar 8, 2023

  1. chore: bump @npmcli/template-oss from 4.11.4 to 4.12.0

    Bumps [@npmcli/template-oss](https://github.com/npm/template-oss) from 4.11.4 to 4.12.0.
    - [Release notes](https://github.com/npm/template-oss/releases)
    - [Changelog](https://github.com/npm/template-oss/blob/main/CHANGELOG.md)
    - [Commits](npm/template-oss@v4.11.4...v4.12.0)
    
    ---
    updated-dependencies:
    - dependency-name: @npmcli/template-oss
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and lukekarrys committed Mar 8, 2023
    Copy the full SHA
    855014f View commit details
  2. Copy the full SHA
    835725c View commit details

Commits on Apr 13, 2023

  1. chore: bump @npmcli/template-oss from 4.12.0 to 4.12.1 (#219)

    * chore: bump @npmcli/template-oss from 4.12.0 to 4.12.1
    
    Bumps [@npmcli/template-oss](https://github.com/npm/template-oss) from 4.12.0 to 4.12.1.
    - [Release notes](https://github.com/npm/template-oss/releases)
    - [Changelog](https://github.com/npm/template-oss/blob/main/CHANGELOG.md)
    - [Commits](npm/template-oss@v4.12.0...v4.12.1)
    
    ---
    updated-dependencies:
    - dependency-name: "@npmcli/template-oss"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    * chore: postinstall for dependabot template-oss PR
    
    ---------
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: npm CLI robot <npm-cli+bot@github.com>
    dependabot[bot] and npm-cli-bot authored Apr 13, 2023
    Copy the full SHA
    dc35186 View commit details
  2. chore: bump @npmcli/template-oss from 4.12.1 to 4.13.0 (#223)

    * chore: bump @npmcli/template-oss from 4.12.1 to 4.13.0
    
    Bumps [@npmcli/template-oss](https://github.com/npm/template-oss) from 4.12.1 to 4.13.0.
    - [Release notes](https://github.com/npm/template-oss/releases)
    - [Changelog](https://github.com/npm/template-oss/blob/main/CHANGELOG.md)
    - [Commits](npm/template-oss@v4.12.1...v4.13.0)
    
    ---
    updated-dependencies:
    - dependency-name: "@npmcli/template-oss"
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    * chore: postinstall for dependabot template-oss PR
    
    ---------
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: npm CLI robot <npm-cli+bot@github.com>
    dependabot[bot] and npm-cli-bot authored Apr 13, 2023
    Copy the full SHA
    e9d6a96 View commit details
  3. Copy the full SHA
    d3cc004 View commit details
  4. Copy the full SHA
    90796d6 View commit details
  5. Copy the full SHA
    cca9da0 View commit details
  6. chore: release 11.1.0

    github-actions[bot] authored and nlf committed Apr 13, 2023
    Copy the full SHA
    23f5c73 View commit details

Commits on Apr 27, 2023

  1. deps: bump minipass from 4.2.7 to 5.0.0 (#220)

    * deps: bump minipass from 4.2.7 to 5.0.0
    
    Bumps [minipass](https://github.com/isaacs/minipass) from 4.2.7 to 5.0.0.
    - [Release notes](https://github.com/isaacs/minipass/releases)
    - [Changelog](https://github.com/isaacs/minipass/blob/main/CHANGELOG.md)
    - [Commits](isaacs/minipass@v4.2.7...v5.0.0)
    
    ---
    updated-dependencies:
    - dependency-name: minipass
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    * chore: fixup usage for minipass@5
    
    ---------
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: nlf <quitlahok@gmail.com>
    dependabot[bot] and nlf authored Apr 27, 2023
    Copy the full SHA
    b04e3c2 View commit details
  2. chore: bump @npmcli/template-oss from 4.13.0 to 4.14.1 (#231)

    * chore: bump @npmcli/template-oss from 4.13.0 to 4.14.1
    
    Bumps [@npmcli/template-oss](https://github.com/npm/template-oss) from 4.13.0 to 4.14.1.
    - [Release notes](https://github.com/npm/template-oss/releases)
    - [Changelog](https://github.com/npm/template-oss/blob/main/CHANGELOG.md)
    - [Commits](npm/template-oss@v4.13.0...v4.14.1)
    
    ---
    updated-dependencies:
    - dependency-name: "@npmcli/template-oss"
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    * chore: postinstall for dependabot template-oss PR
    
    * chore: postinstall for dependabot template-oss PR
    
    ---------
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: npm CLI robot <npm-cli+bot@github.com>
    Co-authored-by: nlf <quitlahok@gmail.com>
    3 people authored Apr 27, 2023
    Copy the full SHA
    e399ecc View commit details
  3. chore: release 11.1.1

    github-actions[bot] authored and nlf committed Apr 27, 2023
    Copy the full SHA
    eb4a838 View commit details
3 changes: 2 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -4,9 +4,10 @@ version: 2

updates:
- package-ecosystem: npm
directory: "/"
directory: /
schedule:
interval: daily
target-branch: "main"
allow:
- dependency-type: direct
versioning-strategy: increase-if-necessary
32 changes: 32 additions & 0 deletions .github/matchers/tap.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"//@npmcli/template-oss": "This file is automatically added by @npmcli/template-oss. Do not edit.",
"problemMatcher": [
{
"owner": "tap",
"pattern": [
{
"regexp": "^\\s*not ok \\d+ - (.*)",
"message": 1
},
{
"regexp": "^\\s*---"
},
{
"regexp": "^\\s*at:"
},
{
"regexp": "^\\s*line:\\s*(\\d+)",
"line": 1
},
{
"regexp": "^\\s*column:\\s*(\\d+)",
"column": 1
},
{
"regexp": "^\\s*file:\\s*(.*)",
"file": 1
}
]
}
]
}
29 changes: 27 additions & 2 deletions .github/settings.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,27 @@
---
_extends: '.github:npm-cli/settings.yml'
# This file is automatically added by @npmcli/template-oss. Do not edit.

repository:
allow_merge_commit: false
allow_rebase_merge: true
allow_squash_merge: true
squash_merge_commit_title: PR_TITLE
squash_merge_commit_message: PR_BODY
delete_branch_on_merge: true
enable_automated_security_fixes: true
enable_vulnerability_alerts: true

branches:
- name: main
protection:
required_status_checks: null
enforce_admins: true
block_creations: true
required_pull_request_reviews:
required_approving_review_count: 1
require_code_owner_reviews: true
require_last_push_approval: true
dismiss_stale_reviews: true
restrictions:
apps: []
users: []
teams: [ "cli-team" ]
32 changes: 22 additions & 10 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -5,23 +5,35 @@ name: Audit
on:
workflow_dispatch:
schedule:
# "At 01:00 on Monday" https://crontab.guru/#0_1_*_*_1
- cron: "0 1 * * 1"
# "At 08:00 UTC (01:00 PT) on Monday" https://crontab.guru/#0_8_*_*_1
- cron: "0 8 * * 1"

jobs:
audit:
name: Audit Dependencies
if: github.repository_owner == 'npm'
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v3
- name: Setup git user
- name: Checkout
uses: actions/checkout@v3
- name: Setup Git User
run: |
git config --global user.email "npm-cli+bot@github.com"
git config --global user.name "npm CLI robot"
- uses: actions/setup-node@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Update npm to latest
node-version: 18.x
- name: Install npm@latest
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
- run: npm -v
- run: npm i --ignore-scripts --no-audit --no-fund --package-lock
- run: npm audit
- name: npm Version
run: npm -v
- name: Install Dependencies
run: npm i --ignore-scripts --no-audit --no-fund --package-lock
- name: Run Production Audit
run: npm audit --omit=dev
- name: Run Full Audit
run: npm audit --audit-level=none
214 changes: 214 additions & 0 deletions .github/workflows/ci-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,214 @@
# This file is automatically added by @npmcli/template-oss. Do not edit.

name: CI - Release

on:
workflow_dispatch:
inputs:
ref:
required: true
type: string
default: main
workflow_call:
inputs:
ref:
required: true
type: string
check-sha:
required: true
type: string

jobs:
lint-all:
name: Lint All
if: github.repository_owner == 'npm'
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Get Workflow Job
uses: actions/github-script@v6
if: inputs.check-sha
id: check-output
env:
JOB_NAME: "Lint All"
MATRIX_NAME: ""
with:
script: |
const { owner, repo } = context.repo
const { data } = await github.rest.actions.listJobsForWorkflowRun({
owner,
repo,
run_id: context.runId,
per_page: 100
})
const jobName = process.env.JOB_NAME + process.env.MATRIX_NAME
const job = data.jobs.find(j => j.name.endsWith(jobName))
const jobUrl = job?.html_url
const shaUrl = `${context.serverUrl}/${owner}/${repo}/commit/${{ inputs.check-sha }}`
let summary = `This check is assosciated with ${shaUrl}\n\n`
if (jobUrl) {
summary += `For run logs, click here: ${jobUrl}`
} else {
summary += `Run logs could not be found for a job with name: "${jobName}"`
}
return { summary }
- name: Create Check
uses: LouisBrunner/checks-action@v1.6.0
id: check
if: inputs.check-sha
with:
token: ${{ secrets.GITHUB_TOKEN }}
status: in_progress
name: Lint All
sha: ${{ inputs.check-sha }}
output: ${{ steps.check-output.outputs.result }}
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ inputs.ref }}
- name: Setup Git User
run: |
git config --global user.email "npm-cli+bot@github.com"
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install npm@latest
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
- name: npm Version
run: npm -v
- name: Install Dependencies
run: npm i --ignore-scripts --no-audit --no-fund
- name: Lint
run: npm run lint --ignore-scripts
- name: Post Lint
run: npm run postlint --ignore-scripts
- name: Conclude Check
uses: LouisBrunner/checks-action@v1.6.0
if: steps.check.outputs.check_id && always()
with:
token: ${{ secrets.GITHUB_TOKEN }}
conclusion: ${{ job.status }}
check_id: ${{ steps.check.outputs.check_id }}

test-all:
name: Test All - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
if: github.repository_owner == 'npm'
strategy:
fail-fast: false
matrix:
platform:
- name: Linux
os: ubuntu-latest
shell: bash
- name: macOS
os: macos-latest
shell: bash
- name: Windows
os: windows-latest
shell: cmd
node-version:
- 16.13.0
- 16.x
- 18.0.0
- 18.x
runs-on: ${{ matrix.platform.os }}
defaults:
run:
shell: ${{ matrix.platform.shell }}
steps:
- name: Get Workflow Job
uses: actions/github-script@v6
if: inputs.check-sha
id: check-output
env:
JOB_NAME: "Test All"
MATRIX_NAME: " - ${{ matrix.platform.name }} - ${{ matrix.node-version }}"
with:
script: |
const { owner, repo } = context.repo
const { data } = await github.rest.actions.listJobsForWorkflowRun({
owner,
repo,
run_id: context.runId,
per_page: 100
})
const jobName = process.env.JOB_NAME + process.env.MATRIX_NAME
const job = data.jobs.find(j => j.name.endsWith(jobName))
const jobUrl = job?.html_url
const shaUrl = `${context.serverUrl}/${owner}/${repo}/commit/${{ inputs.check-sha }}`
let summary = `This check is assosciated with ${shaUrl}\n\n`
if (jobUrl) {
summary += `For run logs, click here: ${jobUrl}`
} else {
summary += `Run logs could not be found for a job with name: "${jobName}"`
}
return { summary }
- name: Create Check
uses: LouisBrunner/checks-action@v1.6.0
id: check
if: inputs.check-sha
with:
token: ${{ secrets.GITHUB_TOKEN }}
status: in_progress
name: Test All - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
sha: ${{ inputs.check-sha }}
output: ${{ steps.check-output.outputs.result }}
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ inputs.ref }}
- name: Setup Git User
run: |
git config --global user.email "npm-cli+bot@github.com"
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Update Windows npm
# node 12 and 14 ship with npm@6, which is known to fail when updating itself in windows
if: matrix.platform.os == 'windows-latest' && (startsWith(matrix.node-version, '12.') || startsWith(matrix.node-version, '14.'))
run: |
curl -sO https://registry.npmjs.org/npm/-/npm-7.5.4.tgz
tar xf npm-7.5.4.tgz
cd package
node lib/npm.js install --no-fund --no-audit -g ..\npm-7.5.4.tgz
cd ..
rmdir /s /q package
- name: Install npm@7
if: startsWith(matrix.node-version, '10.')
run: npm i --prefer-online --no-fund --no-audit -g npm@7
- name: Install npm@latest
if: ${{ !startsWith(matrix.node-version, '10.') }}
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
- name: npm Version
run: npm -v
- name: Install Dependencies
run: npm i --ignore-scripts --no-audit --no-fund
- name: Add Problem Matcher
run: echo "::add-matcher::.github/matchers/tap.json"
- name: Test
run: npm test --ignore-scripts
- name: Conclude Check
uses: LouisBrunner/checks-action@v1.6.0
if: steps.check.outputs.check_id && always()
with:
token: ${{ secrets.GITHUB_TOKEN }}
conclusion: ${{ job.status }}
check_id: ${{ steps.check.outputs.check_id }}
Loading