Skip to content

Commit 8ae9e0e

Browse files
committed
chore: @npmcli/[email protected]
1 parent 5c14a2f commit 8ae9e0e

File tree

6 files changed

+77
-7
lines changed

6 files changed

+77
-7
lines changed

.commitlintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ module.exports = {
66
rules: {
77
'type-enum': [2, 'always', ['feat', 'fix', 'docs', 'chore', 'deps']],
88
'header-max-length': [2, 'always', 80],
9-
'subject-case': [2, 'always', ['lower-case', 'sentence-case', 'start-case']],
9+
'subject-case': [0, 'always', ['lower-case', 'sentence-case', 'start-case']],
1010
},
1111
}

.github/dependabot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ updates:
88
interval: daily
99
allow:
1010
- dependency-type: direct
11-
versioning-strategy: increase-if-necessary
11+
versioning-strategy: increase
1212
commit-message:
1313
prefix: deps
1414
prefix-development: chore
1515
labels:
16-
- "dependencies"
16+
- "Dependencies"
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This file is automatically added by @npmcli/template-oss. Do not edit.
2+
3+
name: "CodeQL"
4+
5+
on:
6+
push:
7+
branches: [ main ]
8+
pull_request:
9+
# The branches below must be a subset of the branches above
10+
branches: [ main ]
11+
schedule:
12+
# "At 03:00 on Monday" https://crontab.guru/#0_3_*_*_1
13+
- cron: "0 3 * * 1"
14+
15+
jobs:
16+
analyze:
17+
name: Analyze
18+
runs-on: ubuntu-latest
19+
permissions:
20+
actions: read
21+
contents: read
22+
security-events: write
23+
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
language: [ 'javascript' ]
28+
29+
steps:
30+
- name: Checkout repository
31+
uses: actions/checkout@v2
32+
33+
- name: Initialize CodeQL
34+
uses: github/codeql-action/init@v1
35+
with:
36+
languages: ${{ matrix.language }}
37+
- name: Perform CodeQL Analysis
38+
uses: github/codeql-action/analyze@v1
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This file is automatically added by @npmcli/template-oss. Do not edit.
2+
3+
name: "Post Dependabot Actions"
4+
on: pull_request
5+
6+
jobs:
7+
Install:
8+
runs-on: ubuntu-latest
9+
if: ${{ github.actor == 'dependabot[bot]' }}
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v2
13+
with:
14+
node-version: '16'
15+
- name: Dependabot metadata
16+
id: metadata
17+
uses: dependabot/[email protected]
18+
with:
19+
github-token: "${{ secrets.GITHUB_TOKEN }}"
20+
- name: npm install and commit
21+
if: ${{contains(steps.metadata.outputs.dependency-names, '@npmcli/template-oss')}}
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
run: |
25+
git config --local user.email "[email protected]"
26+
git config --local user.name "npm cli ops bot"
27+
gh pr checkout ${{ github.event.pull_request.number }}
28+
npm install
29+
git add .
30+
git commit -am "chore: postinstall for dependabot template-oss PR"
31+
git push origin ${{github.ref_name}}

.github/workflows/release-please.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ jobs:
2121
[{"type":"feat","section":"Features","hidden":false},
2222
{"type":"fix","section":"Bug Fixes","hidden":false},
2323
{"type":"docs","section":"Documentation","hidden":false},
24-
{"type":"deps","section":"dependencies","hidden":false},
24+
{"type":"deps","section":"Dependencies","hidden":false},
2525
{"type":"chore","hidden":true}]

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"postversion": "npm publish",
1313
"prepublishOnly": "git push origin --follow-tags",
1414
"lintfix": "npm run lint -- --fix",
15-
"snap": "tap"
15+
"snap": "tap",
16+
"template-copy": "npm-template-copy --force"
1617
},
1718
"repository": {
1819
"type": "git",
@@ -35,7 +36,7 @@
3536
"typedarray-to-buffer": "^4.0.0"
3637
},
3738
"devDependencies": {
38-
"@npmcli/template-oss": "^2.5.1",
39+
"@npmcli/template-oss": "^2.7.1",
3940
"mkdirp": "^1.0.4",
4041
"rimraf": "^3.0.2",
4142
"tap": "^15.1.6"
@@ -49,6 +50,6 @@
4950
},
5051
"templateOSS": {
5152
"windowsCI": false,
52-
"version": "2.5.1"
53+
"version": "2.7.1"
5354
}
5455
}

0 commit comments

Comments
 (0)