Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
956e228
Correct typo in README
isaacs Aug 12, 2019
c83c18c
5.7.1
isaacs Aug 12, 2019
deb5ad5
chore: @npmcli/template-oss@4.16.0
lukekarrys Jul 5, 2023
39f6326
chore: @npmcli/template-oss@4.16.0
lukekarrys Jul 5, 2023
928e56d
fix: better handling of whitespace (#591)
lukekarrys Jul 10, 2023
2f8fd41
fix: better handling of whitespace (#585)
joaomoreno Jul 10, 2023
f8cc313
chore: release 5.7.2
github-actions[bot] Jul 10, 2023
44d27bc
chore: release 6.3.1
github-actions[bot] Jul 10, 2023
3079a07
chore: bump @npmcli/template-oss from 4.17.0 to 4.19.0
dependabot[bot] Sep 14, 2023
8618ea0
chore: postinstall for dependabot template-oss PR
lukekarrys Sep 15, 2023
0dfc8fa
chore: auto publish
lukekarrys Sep 15, 2023
869b3b4
chore: bump @npmcli/template-oss from 4.17.0 to 4.18.1
dependabot[bot] Sep 14, 2023
611eca4
chore: postinstall for dependabot template-oss PR
lukekarrys Sep 15, 2023
d7654e3
chore: auto publish
lukekarrys Sep 15, 2023
39ffabc
chore: bump @npmcli/template-oss from 4.19.0 to 4.21.1
dependabot[bot] Nov 16, 2023
bcdd8dd
chore: postinstall for dependabot template-oss PR
lukekarrys Dec 4, 2023
020601c
chore: bump @npmcli/template-oss from 4.19.0 to 4.20.1
dependabot[bot] Nov 16, 2023
47861f5
chore: postinstall for dependabot template-oss PR
lukekarrys Dec 3, 2023
360888d
chore: bump @npmcli/template-oss from 4.21.1 to 4.21.3
dependabot[bot] Dec 7, 2023
8492f12
chore: postinstall for dependabot template-oss PR
lukekarrys Dec 7, 2023
e23c0ab
chore: bump @npmcli/template-oss from 4.21.1 to 4.21.3
dependabot[bot] Dec 7, 2023
9f96d5b
chore: bump @npmcli/template-oss from 4.21.3 to 4.21.4
dependabot[bot] Apr 16, 2024
3969129
chore: postinstall for dependabot template-oss PR
lukekarrys Apr 20, 2024
360be89
chore: bump @npmcli/template-oss from 4.21.3 to 4.21.4
dependabot[bot] Apr 16, 2024
ee64c7f
chore: chore: postinstall for dependabot template-oss PR
lukekarrys Apr 20, 2024
16bb078
chore: release 6.3.2
github-actions[bot] Apr 21, 2024
9246ad5
chore(deps): @npmcli/template-oss@4.22.0 (#708)
lukekarrys May 6, 2024
2f7706d
chore: bump @npmcli/template-oss from 4.22.0 to 4.23.1
dependabot[bot] Jul 17, 2024
1ed65a5
chore: postinstall for dependabot template-oss PR
hashtagchris Jul 22, 2024
d112a5f
chore: bump @npmcli/template-oss from 4.23.1 to 4.23.3 (#742)
dependabot[bot] Jan 28, 2025
e0c4838
chore: bump @npmcli/template-oss from 4.23.3 to 4.24.3 (#776)
dependabot[bot] Apr 8, 2025
f2887c9
chore: bump @npmcli/template-oss from 4.24.3 to 4.24.4 (#791)
dependabot[bot] Jun 26, 2025
53c9806
chore: bump @npmcli/template-oss from 4.24.4 to 4.25.0 (#795)
dependabot[bot] Jul 9, 2025
35a973a
chore: bump @npmcli/template-oss from 4.25.0 to 4.25.1 (#806)
dependabot[bot] Sep 19, 2025
ec2866e
Create .DS_Store
BablAdm Sep 21, 2025
817d52a
Merge remote-tracking branch 'origin/release-please--branches--releas…
BablAdm Sep 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .commitlintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/* This file is automatically added by @npmcli/template-oss. Do not edit. */

module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [2, 'always', ['feat', 'fix', 'docs', 'deps', 'chore']],
'header-max-length': [2, 'always', 80],
'subject-case': [0],
'body-max-line-length': [0],
'footer-max-line-length': [0],
},
}
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This file is automatically added by @npmcli/template-oss. Do not edit.

* @npm/cli-team
54 changes: 54 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# This file is automatically added by @npmcli/template-oss. Do not edit.

name: Bug
description: File a bug/issue
title: "[BUG] <title>"
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: |
- npm:
- Node:
- OS:
- platform:
validations:
required: false
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This file is automatically added by @npmcli/template-oss. Do not edit.

blank_issues_enabled: true
Binary file added .github/actions/.DS_Store
Binary file not shown.
52 changes: 52 additions & 0 deletions .github/actions/create-check/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# This file is automatically added by @npmcli/template-oss. Do not edit.

name: 'Create Check'
inputs:
name:
required: true
token:
required: true
sha:
required: true
check-name:
default: ''
outputs:
check-id:
value: ${{ steps.create-check.outputs.check_id }}
runs:
using: "composite"
steps:
- name: Get Workflow Job
uses: actions/github-script@v7
id: workflow
env:
JOB_NAME: "${{ inputs.name }}"
SHA: "${{ inputs.sha }}"
with:
result-encoding: string
script: |
const { repo: { owner, repo}, runId, serverUrl } = context
const { JOB_NAME, SHA } = process.env

const job = await github.rest.actions.listJobsForWorkflowRun({
owner,
repo,
run_id: runId,
per_page: 100
}).then(r => r.data.jobs.find(j => j.name.endsWith(JOB_NAME)))

return [
`This check is assosciated with ${serverUrl}/${owner}/${repo}/commit/${SHA}.`,
'Run logs:',
job?.html_url || `could not be found for a job ending with: "${JOB_NAME}"`,
].join(' ')
- name: Create Check
uses: LouisBrunner/checks-action@v1.6.0
id: create-check
with:
token: ${{ inputs.token }}
sha: ${{ inputs.sha }}
status: in_progress
name: ${{ inputs.check-name || inputs.name }}
output: |
{"summary":"${{ steps.workflow.outputs.result }}"}
58 changes: 58 additions & 0 deletions .github/actions/install-latest-npm/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# This file is automatically added by @npmcli/template-oss. Do not edit.

name: 'Install Latest npm'
description: 'Install the latest version of npm compatible with the Node version'
inputs:
node:
description: 'Current Node version'
required: true
runs:
using: "composite"
steps:
# node 10/12/14 ship with npm@6, which is known to fail when updating itself in windows
- name: Update Windows npm
if: |
runner.os == 'Windows' && (
startsWith(inputs.node, 'v10.') ||
startsWith(inputs.node, 'v12.') ||
startsWith(inputs.node, 'v14.')
)
shell: cmd
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 Latest npm
shell: bash
env:
NODE_VERSION: ${{ inputs.node }}
working-directory: ${{ runner.temp }}
run: |
MATCH=""
SPECS=("latest" "next-10" "next-9" "next-8" "next-7" "next-6")

echo "node@$NODE_VERSION"

for SPEC in ${SPECS[@]}; do
ENGINES=$(npm view npm@$SPEC --json | jq -r '.engines.node')
echo "Checking if node@$NODE_VERSION satisfies npm@$SPEC ($ENGINES)"

if npx semver -r "$ENGINES" "$NODE_VERSION" > /dev/null; then
MATCH=$SPEC
echo "Found compatible version: npm@$MATCH"
break
fi
done

if [ -z $MATCH ]; then
echo "Could not find a compatible version of npm for node@$NODE_VERSION"
exit 1
fi

npm i --prefer-online --no-fund --no-audit -g npm@$MATCH
- name: npm Version
shell: bash
run: npm -v
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
}
]
}
]
}
47 changes: 47 additions & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# This file is automatically added by @npmcli/template-oss. Do not edit.

name: Audit

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

permissions:
contents: read

jobs:
audit:
name: Audit Dependencies
if: github.repository_owner == 'npm'
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v4
- 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@v4
id: node
with:
node-version: 20.x
check-latest: contains('20.x', '.x')
- name: Remove Template-OSS
if: matrix && matrix.node-version == '6.17.1'
run: |
# template-oss cannot be installed on older npms because there are transient deps
# that use "npm:" aliases which are not supported
jq 'del(.devDependencies["@npmcli/template-oss"])' package.json > package.json-update
mv package.json-update package.json
- 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
Loading