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/init-package-json
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 543410db6424738a6dd996250e72d8c8d10a4bc1
Choose a base ref
...
head repository: npm/init-package-json
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 6b7dbafcd857b065a505aa3424b87a9c4bf0a64c
Choose a head ref

Commits on Feb 24, 2022

  1. chore: update @npmcli/template-oss requirement from ^2.7.1 to ^2.8.1 (#…

    …130)
    
    * chore: update @npmcli/template-oss requirement from ^2.7.1 to ^2.8.1
    
    Updates the requirements on [@npmcli/template-oss](https://github.com/npm/template-oss) to permit the latest version.
    - [Release notes](https://github.com/npm/template-oss/releases)
    - [Changelog](https://github.com/npm/template-oss/blob/main/CHANGELOG.md)
    - [Commits](npm/template-oss@v2.7.1...v2.8.1)
    
    ---
    updated-dependencies:
    - dependency-name: "@npmcli/template-oss"
      dependency-type: direct:development
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    * chore: postinstall for dependabot template-oss PR
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Gar <gar+gh@danger.computer>
    dependabot[bot] and wraithgar authored Feb 24, 2022
    Copy the full SHA
    e07b7b3 View commit details

Commits on Mar 3, 2022

  1. chore: update @npmcli/config requirement from ^4.0.0 to ^4.0.1 (#132)

    Updates the requirements on [@npmcli/config](https://github.com/npm/config) to permit the latest version.
    - [Release notes](https://github.com/npm/config/releases)
    - [Changelog](https://github.com/npm/config/blob/main/CHANGELOG.md)
    - [Commits](npm/config@v4.0.0...v4.0.1)
    
    ---
    updated-dependencies:
    - dependency-name: "@npmcli/config"
      dependency-type: direct:development
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 3, 2022
    Copy the full SHA
    7fb957a View commit details
  2. chore: update @npmcli/template-oss requirement from ^2.8.1 to ^2.9.2 (#…

    …131)
    
    * chore: update @npmcli/template-oss requirement from ^2.8.1 to ^2.9.2
    
    Updates the requirements on [@npmcli/template-oss](https://github.com/npm/template-oss) to permit the latest version.
    - [Release notes](https://github.com/npm/template-oss/releases)
    - [Changelog](https://github.com/npm/template-oss/blob/main/CHANGELOG.md)
    - [Commits](npm/template-oss@v2.8.1...v2.9.2)
    
    ---
    updated-dependencies:
    - dependency-name: "@npmcli/template-oss"
      dependency-type: direct:development
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    * chore: postinstall for dependabot template-oss PR
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Gar <gar+gh@danger.computer>
    dependabot[bot] and wraithgar authored Mar 3, 2022
    Copy the full SHA
    31023e1 View commit details

Commits on Mar 15, 2022

  1. deps: bump read-package-json from 4.1.2 to 5.0.0 (#134)

    Bumps [read-package-json](https://github.com/npm/read-package-json) from 4.1.2 to 5.0.0.
    - [Release notes](https://github.com/npm/read-package-json/releases)
    - [Changelog](https://github.com/npm/read-package-json/blob/main/CHANGELOG.md)
    - [Commits](npm/read-package-json@v4.1.2...v5.0.0)
    
    ---
    updated-dependencies:
    - dependency-name: read-package-json
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 15, 2022
    Copy the full SHA
    3b7a109 View commit details
  2. chore: release 3.0.1 (#135)

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

Commits on Mar 28, 2022

  1. chore: bump @npmcli/template-oss from 2.9.2 to 3.2.0 (#140)

    * chore: bump @npmcli/template-oss from 2.9.2 to 3.2.0
    
    Bumps [@npmcli/template-oss](https://github.com/npm/template-oss) from 2.9.2 to 3.2.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@v2.9.2...v3.2.0)
    
    ---
    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>
    
    * chore: postinstall for dependabot template-oss PR
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Gar <gar+gh@danger.computer>
    dependabot[bot] and wraithgar authored Mar 28, 2022
    Copy the full SHA
    d8bdf52 View commit details
  2. chore: bump tap from 15.2.3 to 16.0.1 (#141)

    Bumps [tap](https://github.com/tapjs/node-tap) from 15.2.3 to 16.0.1.
    - [Release notes](https://github.com/tapjs/node-tap/releases)
    - [Commits](tapjs/tapjs@v15.2.3...v16.0.1)
    
    ---
    updated-dependencies:
    - dependency-name: tap
      dependency-type: direct:development
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 28, 2022
    Copy the full SHA
    3b443aa View commit details
  3. deps: update npm-package-arg requirement from ^9.0.0 to ^9.0.1 (#136)

    Updates the requirements on [npm-package-arg](https://github.com/npm/npm-package-arg) to permit the latest version.
    - [Release notes](https://github.com/npm/npm-package-arg/releases)
    - [Changelog](https://github.com/npm/npm-package-arg/blob/main/CHANGELOG.md)
    - [Commits](npm/npm-package-arg@v9.0.0...v9.0.1)
    
    ---
    updated-dependencies:
    - dependency-name: npm-package-arg
      dependency-type: direct:production
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 28, 2022
    Copy the full SHA
    b1ec548 View commit details

Commits on Mar 29, 2022

  1. deps: bump validate-npm-package-name from 3.0.0 to 4.0.0 (#144)

    Bumps [validate-npm-package-name](https://github.com/npm/validate-npm-package-name) from 3.0.0 to 4.0.0.
    - [Release notes](https://github.com/npm/validate-npm-package-name/releases)
    - [Changelog](https://github.com/npm/validate-npm-package-name/blob/main/CHANGELOG.md)
    - [Commits](npm/validate-npm-package-name@v3.0.0...v4.0.0)
    
    ---
    updated-dependencies:
    - dependency-name: validate-npm-package-name
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 29, 2022
    Copy the full SHA
    fa7574a View commit details
  2. chore: bump @npmcli/template-oss from 3.2.0 to 3.2.1 (#143)

    * chore: bump @npmcli/template-oss from 3.2.0 to 3.2.1
    
    Bumps [@npmcli/template-oss](https://github.com/npm/template-oss) from 3.2.0 to 3.2.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@v3.2.0...v3.2.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
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: npm cli ops bot <ops+npm-cli@npmjs.com>
    dependabot[bot] and npm cli ops bot authored Mar 29, 2022
    Copy the full SHA
    e4ba49a View commit details
  3. chore(main): release 3.0.2 (#142)

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

Commits on Apr 20, 2022

  1. chore: bump @npmcli/template-oss from 3.2.1 to 3.4.1 (#147)

    * chore: bump @npmcli/template-oss from 3.2.1 to 3.4.1
    
    Bumps [@npmcli/template-oss](https://github.com/npm/template-oss) from 3.2.1 to 3.4.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@v3.2.1...v3.4.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
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Luke Karrys <luke@lukekarrys.com>
    dependabot[bot] and lukekarrys authored Apr 20, 2022
    Copy the full SHA
    9023742 View commit details

Commits on Apr 30, 2022

  1. chore: bump @npmcli/template-oss from 3.4.1 to 3.4.2

    Bumps [@npmcli/template-oss](https://github.com/npm/template-oss) from 3.4.1 to 3.4.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.4.1...v3.4.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 Apr 30, 2022
    Copy the full SHA
    6f0fbd3 View commit details
  2. Copy the full SHA
    64ad963 View commit details

Commits on Jun 29, 2022

  1. chore: bump @npmcli/template-oss from 3.4.2 to 3.4.3 (#149)

    * chore: bump @npmcli/template-oss from 3.4.2 to 3.4.3
    
    Bumps [@npmcli/template-oss](https://github.com/npm/template-oss) from 3.4.2 to 3.4.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@v3.4.2...v3.4.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>
    
    * chore: postinstall for dependabot template-oss PR
    
    * chore: postinstall for dependabot template-oss PR
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: npm team <ops+robot@npmjs.com>
    Co-authored-by: Luke Karrys <luke@lukekarrys.com>
    3 people authored Jun 29, 2022
    Copy the full SHA
    8abb642 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
    197e9c3 View commit details
  2. Copy the full SHA
    18e3c78 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
    2eeb977 View commit details
  2. feat!: postinstall for dependabot template-oss PR

    BREAKING CHANGE: `init-package-json` 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
    e8ea83a 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
    bb17043 View commit details
  2. Copy the full SHA
    ada46c8 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
    9eacc7e View commit details
  2. Copy the full SHA
    a9b2e54 View commit details

Commits on Oct 14, 2022

  1. deps: bump validate-npm-package-name from 4.0.0 to 5.0.0 (#168)

    Bumps [validate-npm-package-name](https://github.com/npm/validate-npm-package-name) from 4.0.0 to 5.0.0.
    - [Release notes](https://github.com/npm/validate-npm-package-name/releases)
    - [Changelog](https://github.com/npm/validate-npm-package-name/blob/main/CHANGELOG.md)
    - [Commits](npm/validate-npm-package-name@v4.0.0...v5.0.0)
    
    ---
    updated-dependencies:
    - dependency-name: validate-npm-package-name
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Oct 14, 2022
    Copy the full SHA
    d342821 View commit details
  2. deps: bump read-package-json from 5.0.2 to 6.0.0 (#170)

    Bumps [read-package-json](https://github.com/npm/read-package-json) from 5.0.2 to 6.0.0.
    - [Release notes](https://github.com/npm/read-package-json/releases)
    - [Changelog](https://github.com/npm/read-package-json/blob/main/CHANGELOG.md)
    - [Commits](npm/read-package-json@v5.0.2...v6.0.0)
    
    ---
    updated-dependencies:
    - dependency-name: read-package-json
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Oct 14, 2022
    Copy the full SHA
    b869b31 View commit details
  3. chore: bump @npmcli/eslint-config from 3.1.0 to 4.0.0 (#169)

    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>
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Oct 14, 2022
    Copy the full SHA
    99e3307 View commit details
  4. chore: bump @npmcli/config from 4.2.2 to 6.0.0 (#167)

    * chore: bump @npmcli/config from 4.2.2 to 6.0.0
    
    Bumps [@npmcli/config](https://github.com/npm/config) from 4.2.2 to 6.0.0.
    - [Release notes](https://github.com/npm/config/releases)
    - [Changelog](https://github.com/npm/config/blob/main/CHANGELOG.md)
    - [Commits](npm/config@v4.2.2...v6.0.0)
    
    ---
    updated-dependencies:
    - dependency-name: "@npmcli/config"
      dependency-type: direct:development
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    * chore: call config.validate() after loading in tests
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Luke Karrys <luke@lukekarrys.com>
    dependabot[bot] and lukekarrys authored Oct 14, 2022
    Copy the full SHA
    ea53243 View commit details
  5. chore: release 4.0.0 (#160)

    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    github-actions[bot] authored Oct 14, 2022
    Copy the full SHA
    6b7dbaf View commit details
5 changes: 2 additions & 3 deletions .commitlintrc.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
// This file is automatically added by @npmcli/template-oss. Do not edit.
/* This file is automatically added by @npmcli/template-oss. Do not edit. */

module.exports = {
extends: ['@commitlint/config-conventional'],
// If you change rules be sure to also update release-please.yml
rules: {
'type-enum': [2, 'always', ['feat', 'fix', 'docs', 'chore', 'deps']],
'type-enum': [2, 'always', ['feat', 'fix', 'docs', 'deps', 'chore']],
'header-max-length': [2, 'always', 80],
'subject-case': [0, 'always', ['lower-case', 'sentence-case', 'start-case']],
},
5 changes: 4 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// This file is automatically added by @npmcli/template-oss. Do not edit.
/* This file is automatically added by @npmcli/template-oss. Do not edit. */

'use strict'

const { readdirSync: readdir } = require('fs')

@@ -7,6 +9,7 @@ const localConfigs = readdir(__dirname)
.map((file) => `./${file}`)

module.exports = {
root: true,
extends: [
'@npmcli',
...localConfigs,
4 changes: 3 additions & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
* @npm/cli-team
# This file is automatically added by @npmcli/template-oss. Do not edit.

* @npm/cli-team
88 changes: 44 additions & 44 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -3,52 +3,52 @@
name: Bug
description: File a bug/issue
title: "[BUG] <title>"
labels: [Bug, Needs Triage]
labels: [ Bug, Needs Triage ]

body:
- type: checkboxes
attributes:
label: Is there an existing issue for this?
description: Please [search here](./issues) to see if an issue already exists for your problem.
options:
- label: I have searched the existing issues
required: true
- type: textarea
attributes:
label: Current Behavior
description: A clear & concise description of what you're experiencing.
validations:
required: false
- type: textarea
attributes:
label: Expected Behavior
description: A clear & concise description of what you expected to happen.
validations:
required: false
- type: textarea
attributes:
label: Steps To Reproduce
description: Steps to reproduce the behavior.
value: |
1. In this environment...
2. With this config...
3. Run '...'
4. See error...
validations:
required: false
- type: textarea
attributes:
label: Environment
description: |
examples:
- **npm**: 7.6.3
- **Node**: 13.14.0
- **OS**: Ubuntu 20.04
- **platform**: Macbook Pro
value: |
- type: checkboxes
attributes:
label: Is there an existing issue for this?
description: Please [search here](./issues) to see if an issue already exists for your problem.
options:
- label: I have searched the existing issues
required: true
- type: textarea
attributes:
label: Current Behavior
description: A clear & concise description of what you're experiencing.
validations:
required: false
- type: textarea
attributes:
label: Expected Behavior
description: A clear & concise description of what you expected to happen.
validations:
required: false
- type: textarea
attributes:
label: Steps To Reproduce
description: Steps to reproduce the behavior.
value: |
1. In this environment...
2. With this config...
3. Run '...'
4. See error...
validations:
required: false
- type: textarea
attributes:
label: Environment
description: |
examples:
- **npm**: 7.6.3
- **Node**: 13.14.0
- **OS**: Ubuntu 20.04
- **platform**: Macbook Pro
value: |
- npm:
- Node:
- OS:
- platform:
validations:
required: false

validations:
required: false
25 changes: 13 additions & 12 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
# This file is automatically added by @npmcli/template-oss. Do not edit.

version: 2

updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
allow:
- dependency-type: direct
versioning-strategy: increase
commit-message:
prefix: deps
prefix-development: chore
labels:
- "Dependencies"
- package-ecosystem: npm
directory: /
schedule:
interval: daily
allow:
- dependency-type: direct
versioning-strategy: increase-if-necessary
commit-message:
prefix: deps
prefix-development: chore
labels:
- "Dependencies"
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
}
]
}
]
}
34 changes: 24 additions & 10 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -3,21 +3,35 @@
name: Audit

on:
schedule:
# "At 01:00 on Monday" https://crontab.guru/#0_1_*_*_1
- cron: "0 1 * * 1"
workflow_dispatch:
schedule:
# "At 08:00 UTC (01:00 PT) on Monday" https://crontab.guru/#0_8_*_*_1
- cron: "0 8 * * 1"

jobs:
audit:
name: npm audit
name: Audit Dependencies
if: github.repository_owner == 'npm'
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- 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"
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install deps
run: npm i --package-lock
- name: Audit
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 --package-lock
- name: Run Audit
run: npm audit
154 changes: 154 additions & 0 deletions .github/workflows/ci-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
# This file is automatically added by @npmcli/template-oss. Do not edit.

name: CI - Release

on:
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: Create Check
uses: LouisBrunner/checks-action@v1.3.1
id: check

with:
token: ${{ secrets.GITHUB_TOKEN }}
status: in_progress
name: Lint All
sha: ${{ inputs.check-sha }}
# XXX: this does not work when using the default GITHUB_TOKEN.
# Instead we post the main job url to the PR as a comment which
# will link to all the other checks. To work around this we would
# need to create a GitHub that would create on-demand tokens.
# https://github.com/LouisBrunner/checks-action/issues/18
# details_url:
- 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.3.1
if: 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:
- 14.17.0
- 14.x
- 16.13.0
- 16.x
- 18.0.0
- 18.x
runs-on: ${{ matrix.platform.os }}
defaults:
run:
shell: ${{ matrix.platform.shell }}
steps:
- name: Create Check
uses: LouisBrunner/checks-action@v1.3.1
id: check

with:
token: ${{ secrets.GITHUB_TOKEN }}
status: in_progress
name: Test All - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
sha: ${{ inputs.check-sha }}
# XXX: this does not work when using the default GITHUB_TOKEN.
# Instead we post the main job url to the PR as a comment which
# will link to all the other checks. To work around this we would
# need to create a GitHub that would create on-demand tokens.
# https://github.com/LouisBrunner/checks-action/issues/18
# details_url:
- 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.3.1
if: always()
with:
token: ${{ secrets.GITHUB_TOKEN }}
conclusion: ${{ job.status }}
check_id: ${{ steps.check.outputs.check_id }}
Loading