Skip to content

Commit 2b2c64b

Browse files
committedFeb 14, 2022
chore: @npmcli/template-oss@2.7.1
1 parent b2fc188 commit 2b2c64b

7 files changed

+91
-13
lines changed
 

‎.commitlintrc.js

+1-1
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

+2-2
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"

‎.github/workflows/ci.yml

+14-6
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- main
1010
- latest
1111
schedule:
12-
# "At 02:00 on Monday" https://crontab.guru/#0_1_*_*_1
12+
# "At 02:00 on Monday" https://crontab.guru/#0_2_*_*_1
1313
- cron: "0 2 * * 1"
1414

1515
jobs:
@@ -34,12 +34,8 @@ jobs:
3434
shell: bash
3535
- os: macos-latest
3636
shell: bash
37-
- os: windows-latest
38-
shell: bash
3937
- os: windows-latest
4038
shell: cmd
41-
- os: windows-latest
42-
shell: powershell
4339
runs-on: ${{ matrix.platform.os }}
4440
defaults:
4541
run:
@@ -49,6 +45,18 @@ jobs:
4945
- uses: actions/setup-node@v2
5046
with:
5147
node-version: ${{ matrix.node-version }}
52-
- run: npm i --prefer-online -g npm@latest
48+
# node 12 and 14 ship with npm@6, which is known to fail when updating itself in windows
49+
- name: Update to workable npm (windows)
50+
if: matrix.platform.os == 'windows-latest' && (startsWith(matrix.node-version, '12') || startsWith(matrix.node-version, '14'))
51+
run: |
52+
curl -sO https://registry.npmjs.org/npm/-/npm-7.5.4.tgz
53+
tar xf npm-7.5.4.tgz
54+
cd package
55+
node lib/npm.js install --no-fund --no-audit -g ..\npm-7.5.4.tgz
56+
cd ..
57+
rmdir /s /q package
58+
- name: Update npm
59+
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
60+
- run: npm -v
5361
- run: npm i
5462
- run: npm test --ignore-scripts

‎.github/workflows/codeql-analysis.yml

+38
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

‎.github/workflows/post-dependabot.yml

+31
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/fetch-metadata@v1.1.1
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 "ops+npm-cli@npmjs.com"
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

+1-1
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

+4-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
"prepublishOnly": "git push origin --follow-tags",
3232
"postlint": "npm-template-check",
3333
"lintfix": "npm run lint -- --fix",
34-
"posttest": "npm run lint"
34+
"posttest": "npm run lint",
35+
"template-copy": "npm-template-copy --force"
3536
},
3637
"tap": {
3738
"check-coverage": true
@@ -42,7 +43,7 @@
4243
]
4344
},
4445
"devDependencies": {
45-
"@npmcli/template-oss": "^2.4.0",
46+
"@npmcli/template-oss": "^2.7.1",
4647
"eslint": "^8.0.0",
4748
"tap": "^15.0.10"
4849
},
@@ -53,6 +54,6 @@
5354
"read-package-json-fast": "^2.0.1"
5455
},
5556
"templateOSS": {
56-
"version": "2.4.0"
57+
"version": "2.7.1"
5758
}
5859
}

0 commit comments

Comments
 (0)
Please sign in to comment.