Skip to content

Commit

Permalink
chore: @npmcli/template-oss@2.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed Feb 9, 2022
1 parent 5c14a2f commit 8ae9e0e
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .commitlintrc.js
Expand Up @@ -6,6 +6,6 @@ module.exports = {
rules: {
'type-enum': [2, 'always', ['feat', 'fix', 'docs', 'chore', 'deps']],
'header-max-length': [2, 'always', 80],
'subject-case': [2, 'always', ['lower-case', 'sentence-case', 'start-case']],
'subject-case': [0, 'always', ['lower-case', 'sentence-case', 'start-case']],
},
}
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Expand Up @@ -8,9 +8,9 @@ updates:
interval: daily
allow:
- dependency-type: direct
versioning-strategy: increase-if-necessary
versioning-strategy: increase
commit-message:
prefix: deps
prefix-development: chore
labels:
- "dependencies"
- "Dependencies"
38 changes: 38 additions & 0 deletions .github/workflows/codeql-analysis.yml
@@ -0,0 +1,38 @@
# This file is automatically added by @npmcli/template-oss. Do not edit.

name: "CodeQL"

on:
push:
branches: [ main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
schedule:
# "At 03:00 on Monday" https://crontab.guru/#0_3_*_*_1
- cron: "0 3 * * 1"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
31 changes: 31 additions & 0 deletions .github/workflows/post-dependabot.yml
@@ -0,0 +1,31 @@
# This file is automatically added by @npmcli/template-oss. Do not edit.

name: "Post Dependabot Actions"
on: pull_request

jobs:
Install:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1.1.1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: npm install and commit
if: ${{contains(steps.metadata.outputs.dependency-names, '@npmcli/template-oss')}}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --local user.email "ops+npm-cli@npmjs.com"
git config --local user.name "npm cli ops bot"
gh pr checkout ${{ github.event.pull_request.number }}
npm install
git add .
git commit -am "chore: postinstall for dependabot template-oss PR"
git push origin ${{github.ref_name}}
2 changes: 1 addition & 1 deletion .github/workflows/release-please.yml
Expand Up @@ -21,5 +21,5 @@ jobs:
[{"type":"feat","section":"Features","hidden":false},
{"type":"fix","section":"Bug Fixes","hidden":false},
{"type":"docs","section":"Documentation","hidden":false},
{"type":"deps","section":"dependencies","hidden":false},
{"type":"deps","section":"Dependencies","hidden":false},
{"type":"chore","hidden":true}]
7 changes: 4 additions & 3 deletions package.json
Expand Up @@ -12,7 +12,8 @@
"postversion": "npm publish",
"prepublishOnly": "git push origin --follow-tags",
"lintfix": "npm run lint -- --fix",
"snap": "tap"
"snap": "tap",
"template-copy": "npm-template-copy --force"
},
"repository": {
"type": "git",
Expand All @@ -35,7 +36,7 @@
"typedarray-to-buffer": "^4.0.0"
},
"devDependencies": {
"@npmcli/template-oss": "^2.5.1",
"@npmcli/template-oss": "^2.7.1",
"mkdirp": "^1.0.4",
"rimraf": "^3.0.2",
"tap": "^15.1.6"
Expand All @@ -49,6 +50,6 @@
},
"templateOSS": {
"windowsCI": false,
"version": "2.5.1"
"version": "2.7.1"
}
}

0 comments on commit 8ae9e0e

Please sign in to comment.