Skip to content

Commit

Permalink
chore: postinstall for dependabot template-oss PR
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Sep 15, 2023
1 parent 869b3b4 commit 611eca4
Show file tree
Hide file tree
Showing 9 changed files with 42 additions and 73 deletions.
52 changes: 0 additions & 52 deletions .github/settings.yml

This file was deleted.

5 changes: 4 additions & 1 deletion .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ jobs:
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
id: node
with:
node-version: 18.x
node-version: 20.x
check-latest: contains('20.x', '.x')

- name: Remove Template-OSS
if: matrix && matrix.node-version == '6.17.1'
run: |
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/ci-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
ref:
required: true
type: string
default: main
default: release/v5
workflow_call:
inputs:
ref:
Expand Down Expand Up @@ -80,8 +80,11 @@ jobs:
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
id: node
with:
node-version: 18.x
node-version: 20.x
check-latest: contains('20.x', '.x')

- name: Remove Template-OSS
if: matrix && matrix.node-version == '6.17.1'
run: |
Expand Down Expand Up @@ -115,7 +118,7 @@ jobs:
shell: bash
node-version:
- 6.17.1
- 18.x
- 20.x
runs-on: ${{ matrix.platform.os }}
defaults:
run:
Expand Down Expand Up @@ -174,8 +177,11 @@ jobs:
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
id: node
with:
node-version: ${{ matrix.node-version }}
check-latest: contains(matrix.node-version, '.x')

- name: Remove Template-OSS
if: matrix && matrix.node-version == '6.17.1'
run: |
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
push:
branches:
- main
- latest
- release/v*
schedule:
# "At 09:00 UTC (02:00 PT) on Monday" https://crontab.guru/#0_9_*_*_1
Expand All @@ -31,8 +30,11 @@ jobs:
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
id: node
with:
node-version: 18.x
node-version: 20.x
check-latest: contains('20.x', '.x')

- name: Remove Template-OSS
if: matrix && matrix.node-version == '6.17.1'
run: |
Expand All @@ -59,7 +61,7 @@ jobs:
shell: bash
node-version:
- 6.17.1
- 18.x
- 20.x
runs-on: ${{ matrix.platform.os }}
defaults:
run:
Expand All @@ -73,8 +75,11 @@ jobs:
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
id: node
with:
node-version: ${{ matrix.node-version }}
check-latest: contains(matrix.node-version, '.x')

- name: Remove Template-OSS
if: matrix && matrix.node-version == '6.17.1'
run: |
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@ on:
push:
branches:
- main
- latest
- release/v*
pull_request:
branches:
- main
- latest
- release/v*
schedule:
# "At 10:00 UTC (03:00 PT) on Monday" https://crontab.guru/#0_10_*_*_1
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ jobs:
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
id: node
with:
node-version: 18.x
node-version: 20.x
check-latest: contains('20.x', '.x')

- name: Remove Template-OSS
if: matrix && matrix.node-version == '6.17.1'
run: |
Expand All @@ -50,4 +53,4 @@ jobs:
env:
PR_TITLE: ${{ github.event.pull_request.title }}
run: |
echo '$PR_TITLE' | npx --offline commitlint -V
echo "$PR_TITLE" | npx --offline commitlint -V
16 changes: 12 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ on:
push:
branches:
- main
- latest
- release/v*

permissions:
Expand Down Expand Up @@ -44,8 +43,11 @@ jobs:
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
id: node
with:
node-version: 18.x
node-version: 20.x
check-latest: contains('20.x', '.x')

- name: Remove Template-OSS
if: matrix && matrix.node-version == '6.17.1'
run: |
Expand Down Expand Up @@ -160,8 +162,11 @@ jobs:
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
id: node
with:
node-version: 18.x
node-version: 20.x
check-latest: contains('20.x', '.x')

- name: Remove Template-OSS
if: matrix && matrix.node-version == '6.17.1'
run: |
Expand Down Expand Up @@ -329,8 +334,11 @@ jobs:
steps:
- name: Setup Node
uses: actions/setup-node@v3
id: node
with:
node-version: 18.x
node-version: 20.x
check-latest: contains('20.x', '.x')

- name: View in Registry
run: |
EXIT_CODE=0
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"posttest": "npm run lint"
},
"devDependencies": {
"@npmcli/template-oss": "4.18.1",
"@npmcli/template-oss": "4.19.0",
"tap": "^12.7.0"
},
"license": "ISC",
Expand All @@ -33,6 +33,6 @@
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"content": "./scripts/template-oss",
"version": "4.17.0"
"version": "4.19.0"
}
}
6 changes: 2 additions & 4 deletions scripts/template-oss/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@ module.exports = {
eslint: false,
dependabot: false,
oldNode: OLD_NODE,
ciVersions: [
OLD_NODE,
'latest',
],
ciVersions: [OLD_NODE],
backport: 5,
allowPaths: [
'/range.bnf',
'/semver.js',
Expand Down

0 comments on commit 611eca4

Please sign in to comment.