Skip to content

Commit d721997

Browse files
committed
chore: postinstall for dependabot template-oss PR
1 parent a7d8797 commit d721997

File tree

9 files changed

+18
-15
lines changed

9 files changed

+18
-15
lines changed

.commitlintrc.cjs

+1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ module.exports = {
77
'header-max-length': [2, 'always', 80],
88
'subject-case': [0],
99
'body-max-line-length': [0],
10+
'footer-max-line-length': [0],
1011
},
1112
}

.github/actions/create-check/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ runs:
2525
with:
2626
result-encoding: string
2727
script: |
28-
const { repo: { owner, repo}, runId, serverUrl } = context
28+
const { repo: { owner, repo}, runId, serverUrl } = context
2929
const { JOB_NAME, SHA } = process.env
3030
3131
const job = await github.rest.actions.listJobsForWorkflowRun({

.github/actions/install-latest-npm/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ runs:
4444
MATCH=$SPEC
4545
echo "Found compatible version: npm@$MATCH"
4646
break
47-
fi
47+
fi
4848
done
4949
5050
if [ -z $MATCH ]; then

.github/workflows/ci-release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
run: npm run postlint --ignore-scripts
6262
- name: Conclude Check
6363
uses: LouisBrunner/[email protected]
64-
if: always()
64+
if: steps.create-check.outputs.check-id && always()
6565
with:
6666
token: ${{ secrets.GITHUB_TOKEN }}
6767
conclusion: ${{ job.status }}
@@ -119,7 +119,7 @@ jobs:
119119
run: npm test --ignore-scripts
120120
- name: Conclude Check
121121
uses: LouisBrunner/[email protected]
122-
if: always()
122+
if: steps.create-check.outputs.check-id && always()
123123
with:
124124
token: ${{ secrets.GITHUB_TOKEN }}
125125
conclusion: ${{ job.status }}

.github/workflows/codeql-analysis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ jobs:
2929
git config --global user.email "[email protected]"
3030
git config --global user.name "npm CLI robot"
3131
- name: Initialize CodeQL
32-
uses: github/codeql-action/init@v2
32+
uses: github/codeql-action/init@v3
3333
with:
3434
languages: javascript
3535
- name: Perform CodeQL Analysis
36-
uses: github/codeql-action/analyze@v2
36+
uses: github/codeql-action/analyze@v3

.github/workflows/post-dependabot.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
id: flags
5050
run: |
5151
dependabot_dir="${{ steps.metadata.outputs.directory }}"
52-
if [[ "$dependabot_dir" == "/" ]]; then
52+
if [[ "$dependabot_dir" == "/" || "$dependabot_dir" == "/main" ]]; then
5353
echo "workspace=-iwr" >> $GITHUB_OUTPUT
5454
else
5555
# strip leading slash from directory so it works as a

.gitignore

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22

33
# ignore everything in the root
44
/*
5-
# transient test directories
6-
tap-testdir*/
75

8-
# keep these
96
!**/.gitignore
107
!/.commitlintrc.cjs
118
!/.eslintrc.cjs
129
!/.eslintrc.local.*
10+
!/.git-blame-ignore-revs
1311
!/.github/
1412
!/.gitignore
1513
!/.npmrc
14+
!/.prettierignore
15+
!/.prettierrc.cjs
1616
!/.release-please-manifest.json
1717
!/bin/
1818
!/CHANGELOG*
@@ -31,3 +31,4 @@ tap-testdir*/
3131
!/test/
3232
!/tsconfig.json
3333
!/types/
34+
tap-testdir*/

SECURITY.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
GitHub takes the security of our software products and services seriously, including the open source code repositories managed through our GitHub organizations, such as [GitHub](https://github.com/GitHub).
44

5-
If you believe you have found a security vulnerability in this GitHub-owned open source repository, you can report it to us in one of two ways.
5+
If you believe you have found a security vulnerability in this GitHub-owned open source repository, you can report it to us in one of two ways.
66

77
If the vulnerability you have found is *not* [in scope for the GitHub Bug Bounty Program](https://bounty.github.com/#scope) or if you do not wish to be considered for a bounty reward, please report the issue to us directly through [[email protected]](mailto:[email protected]).
88

package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44
"description": "Typescript definitions for npm registry content",
55
"types": "./types/index.d.ts",
66
"scripts": {
7-
"lint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"",
7+
"lint": "npm run eslint",
88
"postlint": "template-oss-check",
99
"template-oss-apply": "template-oss-apply --force",
10-
"lintfix": "npm run lint -- --fix",
10+
"lintfix": "npm run eslint -- --fix",
1111
"snap": "tap",
1212
"test": "tap",
13-
"posttest": "npm run lint"
13+
"posttest": "npm run lint",
14+
"eslint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\""
1415
},
1516
"keywords": [
1617
"npm registry",
@@ -44,7 +45,7 @@
4445
},
4546
"templateOSS": {
4647
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
47-
"version": "4.22.0",
48+
"version": "4.23.3",
4849
"allowPaths": [
4950
"/types/"
5051
],

0 commit comments

Comments
 (0)