Skip to content

Commit cc4cc11

Browse files
committed
deps: @npmcli/[email protected]
1 parent 6926dd1 commit cc4cc11

10 files changed

+339
-177
lines changed

.commitlintrc.js

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

.github/dependabot.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# This file is automatically added by @npmcli/template-oss. Do not edit.
2+
3+
version: 2
4+
updates:
5+
- package-ecosystem: npm
6+
directory: "/"
7+
schedule:
8+
interval: daily
9+
allow:
10+
- dependency-type: direct
11+
versioning-strategy: increase-if-necessary
12+
commit-message:
13+
prefix: deps
14+
prefix-development: chore
15+
labels:
16+
- "dependencies"

.github/workflows/audit.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# This file is automatically added by @npmcli/template-oss. Do not edit.
2+
3+
name: Audit
4+
5+
on:
6+
schedule:
7+
# "At 01:00 on Monday" https://crontab.guru/#0_1_*_*_1
8+
- cron: "0 1 * * 1"
9+
workflow_dispatch:
10+
11+
jobs:
12+
audit:
13+
name: npm audit
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: actions/setup-node@v2
18+
with:
19+
node-version: '16'
20+
- name: Install deps
21+
run: npm i --package-lock
22+
- name: Audit
23+
run: npm audit

.github/workflows/ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
branches:
99
- main
1010
- latest
11+
schedule:
12+
# "At 02:00 on Monday" https://crontab.guru/#0_1_*_*_1
13+
- cron: "0 2 * * 1"
1114

1215
jobs:
1316
lint:
@@ -17,9 +20,8 @@ jobs:
1720
- uses: actions/setup-node@v2
1821
with:
1922
node-version: '16'
20-
cache: npm
2123
- run: npm i --prefer-online -g npm@latest
22-
- run: npm ci
24+
- run: npm i
2325
- run: npm run lint
2426

2527
test:
@@ -47,7 +49,6 @@ jobs:
4749
- uses: actions/setup-node@v2
4850
with:
4951
node-version: ${{ matrix.node-version }}
50-
cache: npm
5152
- run: npm i --prefer-online -g npm@latest
52-
- run: npm ci
53+
- run: npm i
5354
- run: npm test --ignore-scripts

.github/workflows/pull-request.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# This file is automatically added by @npmcli/template-oss. Do not edit.
2+
3+
name: Pull Request Linting
4+
5+
on:
6+
pull_request:
7+
types: [opened, reopened, edited, synchronize]
8+
9+
jobs:
10+
check:
11+
name: Check PR Title or Commits
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 0
17+
- uses: actions/setup-node@v2
18+
with:
19+
node-version: '16'
20+
- name: Install deps
21+
run: |
22+
npm i -D @commitlint/cli @commitlint/config-conventional
23+
- name: Check commits OR PR title
24+
env:
25+
PR_TITLE: ${{ github.event.pull_request.title }}
26+
run: |
27+
npx commitlint -x @commitlint/config-conventional -V --from origin/main --to ${{ github.event.pull_request.head.sha }} || echo $PR_TITLE | npx commitlint -x @commitlint/config-conventional -V

.github/workflows/release-please.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# This file is automatically added by @npmcli/template-oss. Do not edit.
2+
3+
name: Release Please
4+
5+
on:
6+
push:
7+
branches:
8+
- main
9+
10+
jobs:
11+
release-please:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: google-github-actions/release-please-action@v2
15+
id: release
16+
with:
17+
package-name: conventional-test
18+
release-type: node
19+
# If you change changelog-types be sure to also update commitlintrc.js
20+
changelog-types: >
21+
[{"type":"feat","section":"Features","hidden":false},
22+
{"type":"fix","section":"Bug Fixes","hidden":false},
23+
{"type":"docs","section":"Documentation","hidden":false},
24+
{"type":"deps","section":"dependencies","hidden":false},
25+
{"type":"chore","hidden":true}]

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
/*
55

66
# keep these
7+
!/.commitlintrc.js
8+
!/.npmrc
79
!/.eslintrc*
810
!/.github
911
!**/.gitignore
1012
!/package.json
11-
!/package-lock.json
1213
!/docs
1314
!/bin
1415
!/lib

.npmrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
;This file is automatically added by @npmcli/template-oss. Do not edit.
2+
3+
package-lock=false

0 commit comments

Comments
 (0)