Skip to content

[pull] main from npm:main #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 96 commits into from
Jul 15, 2025
Merged
Changes from 1 commit
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
e0f1eb5
chore: @npmcli/[email protected]
lukekarrys Apr 22, 2022
88bd796
chore: linting
lukekarrys Apr 22, 2022
e1c5e58
chore(deps): [email protected]
lukekarrys Apr 22, 2022
07bff07
chore: @npmcli/[email protected]
lukekarrys Sep 20, 2022
d5580e7
chore: postinstall for dependabot template-oss PR
lukekarrys Sep 20, 2022
d768311
chore: ignore some lint rules for tests
lukekarrys Sep 20, 2022
81982f1
chore: support git longpaths in ci
lukekarrys Sep 20, 2022
8d18199
chore: set taprc for windows
lukekarrys Sep 20, 2022
0b1b8f1
chore(ci): test in node 18
lukekarrys Sep 20, 2022
26a496e
chore: only test in 10.x for node 10
lukekarrys Sep 20, 2022
a9e0d6f
chore: bump tar-fs from 1.16.3 to 2.1.1
dependabot[bot] Sep 20, 2022
1801244
chore: removed unused run-script flags in ci
lukekarrys Sep 21, 2022
acb6648
chore: bump tar-stream from 1.6.2 to 2.2.0
dependabot[bot] Sep 21, 2022
cfddd42
chore: bump rimraf from 2.7.1 to 3.0.2
dependabot[bot] Sep 21, 2022
118a6c8
chore: bump @npmcli/template-oss from 4.3.2 to 4.4.4
dependabot[bot] Sep 23, 2022
9d71c56
chore: postinstall for dependabot template-oss PR
lukekarrys Sep 30, 2022
14e43f7
chore: bump @npmcli/template-oss from 4.4.4 to 4.5.1
dependabot[bot] Oct 5, 2022
fc207a8
chore: postinstall for dependabot template-oss PR
lukekarrys Oct 10, 2022
08cc156
chore: bump @npmcli/eslint-config from 3.1.0 to 4.0.0
dependabot[bot] Oct 14, 2022
39c60ad
chore: bump @npmcli/template-oss from 4.5.1 to 4.6.1
dependabot[bot] Oct 17, 2022
2a49e7a
chore: postinstall for dependabot template-oss PR
lukekarrys Oct 17, 2022
c78c108
chore: bump @npmcli/template-oss from 4.6.1 to 4.6.2
dependabot[bot] Oct 18, 2022
d9edb34
chore: postinstall for dependabot template-oss PR
lukekarrys Oct 19, 2022
b003c64
fix: replace deprecated String.prototype.substr() (#314)
CommanderRoot Oct 27, 2022
24045dc
chore: bump @npmcli/template-oss from 4.6.2 to 4.7.1
dependabot[bot] Oct 25, 2022
1e3fadf
chore: postinstall for dependabot template-oss PR
lukekarrys Oct 27, 2022
57493ee
fix: ensuring close event is emited after stream has ended
webark Oct 5, 2022
eaea26d
chore: bump @npmcli/template-oss from 4.7.1 to 4.8.0
dependabot[bot] Oct 28, 2022
79378ef
chore: postinstall for dependabot template-oss PR
lukekarrys Oct 28, 2022
2e45b11
chore: use a local instead of remote file for test
lukekarrys Oct 27, 2022
ac1026a
chore: dry up template-oss config
lukekarrys Oct 29, 2022
001eafb
chore: release 6.1.12
github-actions[bot] Oct 31, 2022
72f6e39
chore: bump @npmcli/template-oss from 4.8.0 to 4.10.0
dependabot[bot] Nov 9, 2022
329caed
chore: postinstall for dependabot template-oss PR
lukekarrys Nov 12, 2022
5dcfcb3
chore: bump events-to-array from 1.1.2 to 2.0.3
dependabot[bot] Nov 12, 2022
cc4e0dd
deps: bump minipass from 3.3.6 to 4.0.0
dependabot[bot] Nov 28, 2022
a044a87
chore: release 6.1.13 (#344)
github-actions[bot] Dec 7, 2022
5f31636
chore: bump @npmcli/template-oss from 4.10.0 to 4.11.0
dependabot[bot] Dec 7, 2022
82bb328
chore: postinstall for dependabot template-oss PR
lukekarrys Dec 10, 2022
75d3081
fix: update repository url in package.json
jcesarmobile Apr 11, 2023
4cbdd67
deps: [email protected]
wraithgar May 2, 2023
4aaffc8
6.1.14
isaacs May 2, 2023
8cd8139
move mutateFS reset out of t.teardown
isaacs May 12, 2023
24efc74
remove parallelism causing test/pack.js to be flaky
isaacs May 12, 2023
4501bdb
Normalize unicode internally using NFD
isaacs May 16, 2023
3302cf7
6.1.15
isaacs May 17, 2023
8c5af15
silence dependabot
isaacs May 18, 2023
c9fc57c
feat: add initial support for brotli
JamieMagee Jun 13, 2023
eeba222
chore: lint fixes
JamieMagee Jun 20, 2023
336fa8f
refactor: dry and other pr comments
JamieMagee Jun 20, 2023
db6f539
file inference improvements for .tbr and .tgz
isaacs Sep 5, 2023
689928a
ci that works outside of npm org
isaacs Sep 5, 2023
e483220
get rid of npm lint stuff
isaacs Sep 5, 2023
fe1ef5e
changelog 6.2
isaacs Sep 5, 2023
5bc9d40
6.2.0
isaacs Sep 5, 2023
fe7ebfd
remove security.md
isaacs Feb 12, 2024
fe8cd57
prevent extraction in excessively deep subfolders
isaacs Mar 16, 2024
bef7b1e
6.2.1
isaacs Mar 21, 2024
0510c9e
do not CI on windows, can't handle the long paths
isaacs Mar 21, 2024
114c7ac
first pass TS refactor
isaacs Apr 8, 2024
9522a69
finish typescript/esm port
isaacs Apr 10, 2024
734434c
changelog v7, flip default chmod behavior
isaacs Apr 10, 2024
578f34f
tighten up changelog entries
isaacs Apr 10, 2024
dfb6b6c
ci: update versions
isaacs Apr 10, 2024
ae9ce7e
test: fix normalize-unicode coverage on linux
isaacs Apr 10, 2024
2330416
test: code style, prefer () to _ for empty fns
isaacs Apr 10, 2024
b3afdbb
unpack test: use modern tap features
isaacs Apr 10, 2024
314ec7e
list: close file even if no error thrown
isaacs Apr 10, 2024
2d89a4e
Properly handle long linkpath in PaxHeader
isaacs Apr 10, 2024
9a260c2
test verifying #398 is fixed
isaacs Apr 10, 2024
957da75
remove old lib folder
isaacs Apr 10, 2024
b0fbdea
7.0.0
isaacs Apr 10, 2024
af04392
Do not apply linkpath,global from global pax header
isaacs Apr 14, 2024
d99fce3
7.0.1
isaacs Apr 14, 2024
faf9359
remove temlate-oss stuff
isaacs Apr 16, 2024
bead873
remove more cruft, format codes
isaacs Apr 16, 2024
79a5c30
update minipass
isaacs May 3, 2024
6b61030
update types to comply with NodeJS.WritableStream
isaacs May 4, 2024
ce612d0
7.1.0
isaacs May 4, 2024
3062616
DRY all commands, correct overload signature types
isaacs May 30, 2024
83e97f6
changelog 7.2
isaacs May 30, 2024
ed17f58
7.2.0
isaacs May 30, 2024
ee87da2
use a lockfile, add tsconfigs to git
isaacs Jun 19, 2024
61b9789
add onWriteEntry method
isaacs Jun 19, 2024
556a13c
7.3.0
isaacs Jun 19, 2024
5c1113b
s/onentry/onReadEntry/g for clarity, deprecate old name
isaacs Jun 19, 2024
02b2687
7.4.0
isaacs Jun 19, 2024
cc7ce8e
github didn't write this, I did
isaacs Jul 22, 2024
e434c7b
some cleanup/formatting around onWriteEntry
isaacs Jul 22, 2024
f1d7a4d
7.4.1
isaacs Jul 22, 2024
35d8d99
kludge around TS pedantry
isaacs Jul 24, 2024
68a685b
7.4.2
isaacs Jul 24, 2024
bf13718
move onWriteEntry to where it can do some good
isaacs Jul 26, 2024
206fcf9
7.4.3
isaacs Jul 26, 2024
02f883a
docs on how to use onWriteEntry
isaacs Aug 14, 2024
d3cd439
remove extraneous 'for example'
isaacs Aug 14, 2024
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
Prev Previous commit
Next Next commit
chore: postinstall for dependabot template-oss PR
lukekarrys committed Oct 17, 2022
commit 2a49e7aaedc4138c6b94104bdaf8de56d86d7876
80 changes: 68 additions & 12 deletions .github/workflows/ci-release.yml
Original file line number Diff line number Diff line change
@@ -21,6 +21,39 @@ jobs:
run:
shell: bash
steps:
- name: Get Workflow Job
uses: actions/github-script@v6

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/[email protected]
id: check
@@ -30,12 +63,7 @@ jobs:
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:
output: ${{ steps.check-output.outputs.result }}
- name: Support Long Paths
if: matrix.platform.os == 'windows-latest'
run: git config --system core.longpaths true
@@ -96,6 +124,39 @@ jobs:
run:
shell: ${{ matrix.platform.shell }}
steps:
- name: Get Workflow Job
uses: actions/github-script@v6

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/[email protected]
id: check
@@ -105,12 +166,7 @@ jobs:
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:
output: ${{ steps.check-output.outputs.result }}
- name: Support Long Paths
if: matrix.platform.os == 'windows-latest'
run: git config --system core.longpaths true
4 changes: 2 additions & 2 deletions .github/workflows/post-dependabot.yml
Original file line number Diff line number Diff line change
@@ -69,7 +69,7 @@ jobs:
# This only sets the conventional commit prefix. This workflow can't reliably determine
# what the breaking change is though. If a BREAKING CHANGE message is required then
# this PR check will fail and the commit will be amended with stafftools
if [[ "${{ steps.dependabot-metadata.outputs.update-type }}" == "version-update:semver-major" ]]; then
if [[ "${{ steps.metadata.outputs.update-type }}" == "version-update:semver-major" ]]; then
prefix='feat!'
else
prefix='chore!'
@@ -93,7 +93,7 @@ jobs:
# and attempt to commit and push again. This is helpful because we will have a commit
# with the correct prefix that we can then --amend with @npmcli/stafftools later.
- name: Push All Changes Except Workflows
if: steps.apply.outputs.changes && steps.push-all.outcome == 'failure'
if: steps.apply.outputs.changes && steps.push.outcome == 'failure'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
93 changes: 78 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@
name: Release

on:
workflow_dispatch:
push:
branches:
- main
@@ -54,17 +55,19 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npx --offline template-oss-release-please ${{ github.ref_name }}
npx --offline template-oss-release-please ${{ github.ref_name }} ${{ github.event_name }}
- name: Post Pull Request Comment
if: steps.release.outputs.pr-number
uses: actions/github-script@v6
id: pr-comment
env:
PR_NUMBER: ${{ steps.release.outputs.pr-number }}
REF_NAME: ${{ github.ref_name }}
with:
script: |
const { REF_NAME, PR_NUMBER } = process.env
const repo = { owner: context.repo.owner, repo: context.repo.repo }
const issue = { ...repo, issue_number: process.env.PR_NUMBER }
const issue = { ...repo, issue_number: PR_NUMBER }
const { data: workflow } = await github.rest.actions.getWorkflowRun({ ...repo, run_id: context.runId })
@@ -73,7 +76,11 @@ jobs:
const comments = await github.paginate(github.rest.issues.listComments, issue)
let commentId = comments?.find(c => c.user.login === 'github-actions[bot]' && c.body.startsWith(body))?.id
body += `- Release workflow run: ${workflow.html_url}`
body += `Release workflow run: ${workflow.html_url}\n\n#### Force CI to Rerun for This Release\n\n`
body += `This PR will be updated and CI will run for every non-\`chore:\` commit that is pushed to \`main\`. `
body += `To force CI to rerun, run this command:\n\n`
body += `\`\`\`\ngh workflow run release.yml -r ${REF_NAME}\n\`\`\``
if (commentId) {
await github.rest.issues.updateComment({ ...repo, comment_id: commentId, body })
} else {
@@ -82,6 +89,39 @@ jobs:
}
return commentId
- name: Get Workflow Job
uses: actions/github-script@v6
if: steps.release.outputs.pr-number
id: check-output
env:
JOB_NAME: "Release"
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/${{ steps.release.outputs.pr-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/[email protected]
id: check
@@ -91,12 +131,7 @@ jobs:
status: in_progress
name: Release
sha: ${{ steps.release.outputs.pr-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:
output: ${{ steps.check-output.outputs.result }}

update:
needs: release
@@ -148,6 +183,39 @@ jobs:
git commit --all --amend --no-edit || true
git push --force-with-lease
echo "::set-output name=sha::$(git rev-parse HEAD)"
- name: Get Workflow Job
uses: actions/github-script@v6

id: check-output
env:
JOB_NAME: "Update - Release"
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/${{ steps.commit.outputs.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/[email protected]
id: check
@@ -157,12 +225,7 @@ jobs:
status: in_progress
name: Release
sha: ${{ steps.commit.outputs.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:
output: ${{ steps.check-output.outputs.result }}
- name: Conclude Check
uses: LouisBrunner/[email protected]
if: always()
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -56,7 +56,7 @@
},
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "4.5.1",
"version": "4.6.1",
"content": "scripts/template-oss",
"engines": ">=10",
"distPaths": [