Skip to content

Commit 8618ea0

Browse files
committed
chore: postinstall for dependabot template-oss PR
1 parent 3079a07 commit 8618ea0

File tree

9 files changed

+41
-72
lines changed

9 files changed

+41
-72
lines changed

.github/settings.yml

Lines changed: 0 additions & 52 deletions
This file was deleted.

.github/workflows/audit.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@ jobs:
2525
git config --global user.name "npm CLI robot"
2626
- name: Setup Node
2727
uses: actions/setup-node@v3
28+
id: node
2829
with:
29-
node-version: 18.x
30+
node-version: 20.x
31+
check-latest: contains('20.x', '.x')
32+
3033
- name: Remove Template-OSS
3134
if: matrix && matrix.node-version == '6.17.1'
3235
run: |

.github/workflows/ci-release.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
ref:
99
required: true
1010
type: string
11-
default: main
11+
default: release/v6
1212
workflow_call:
1313
inputs:
1414
ref:
@@ -80,8 +80,11 @@ jobs:
8080
git config --global user.name "npm CLI robot"
8181
- name: Setup Node
8282
uses: actions/setup-node@v3
83+
id: node
8384
with:
84-
node-version: 18.x
85+
node-version: 20.x
86+
check-latest: contains('20.x', '.x')
87+
8588
- name: Remove Template-OSS
8689
if: matrix && matrix.node-version == '6.17.1'
8790
run: |
@@ -115,7 +118,7 @@ jobs:
115118
shell: bash
116119
node-version:
117120
- 6.17.1
118-
- 18.x
121+
- 20.x
119122
runs-on: ${{ matrix.platform.os }}
120123
defaults:
121124
run:
@@ -174,8 +177,11 @@ jobs:
174177
git config --global user.name "npm CLI robot"
175178
- name: Setup Node
176179
uses: actions/setup-node@v3
180+
id: node
177181
with:
178182
node-version: ${{ matrix.node-version }}
183+
check-latest: contains(matrix.node-version, '.x')
184+
179185
- name: Remove Template-OSS
180186
if: matrix && matrix.node-version == '6.17.1'
181187
run: |

.github/workflows/ci.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88
push:
99
branches:
1010
- main
11-
- latest
1211
- release/v*
1312
schedule:
1413
# "At 09:00 UTC (02:00 PT) on Monday" https://crontab.guru/#0_9_*_*_1
@@ -31,8 +30,11 @@ jobs:
3130
git config --global user.name "npm CLI robot"
3231
- name: Setup Node
3332
uses: actions/setup-node@v3
33+
id: node
3434
with:
35-
node-version: 18.x
35+
node-version: 20.x
36+
check-latest: contains('20.x', '.x')
37+
3638
- name: Remove Template-OSS
3739
if: matrix && matrix.node-version == '6.17.1'
3840
run: |
@@ -59,7 +61,7 @@ jobs:
5961
shell: bash
6062
node-version:
6163
- 6.17.1
62-
- 18.x
64+
- 20.x
6365
runs-on: ${{ matrix.platform.os }}
6466
defaults:
6567
run:
@@ -73,8 +75,11 @@ jobs:
7375
git config --global user.name "npm CLI robot"
7476
- name: Setup Node
7577
uses: actions/setup-node@v3
78+
id: node
7679
with:
7780
node-version: ${{ matrix.node-version }}
81+
check-latest: contains(matrix.node-version, '.x')
82+
7883
- name: Remove Template-OSS
7984
if: matrix && matrix.node-version == '6.17.1'
8085
run: |

.github/workflows/codeql-analysis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@ on:
66
push:
77
branches:
88
- main
9-
- latest
109
- release/v*
1110
pull_request:
1211
branches:
1312
- main
14-
- latest
1513
- release/v*
1614
schedule:
1715
# "At 10:00 UTC (03:00 PT) on Monday" https://crontab.guru/#0_10_*_*_1

.github/workflows/pull-request.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ jobs:
2929
git config --global user.name "npm CLI robot"
3030
- name: Setup Node
3131
uses: actions/setup-node@v3
32+
id: node
3233
with:
33-
node-version: 18.x
34+
node-version: 20.x
35+
check-latest: contains('20.x', '.x')
36+
3437
- name: Remove Template-OSS
3538
if: matrix && matrix.node-version == '6.17.1'
3639
run: |
@@ -50,4 +53,4 @@ jobs:
5053
env:
5154
PR_TITLE: ${{ github.event.pull_request.title }}
5255
run: |
53-
echo '$PR_TITLE' | npx --offline commitlint -V
56+
echo "$PR_TITLE" | npx --offline commitlint -V

.github/workflows/release.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ on:
1111
push:
1212
branches:
1313
- main
14-
- latest
1514
- release/v*
1615

1716
permissions:
@@ -44,8 +43,11 @@ jobs:
4443
git config --global user.name "npm CLI robot"
4544
- name: Setup Node
4645
uses: actions/setup-node@v3
46+
id: node
4747
with:
48-
node-version: 18.x
48+
node-version: 20.x
49+
check-latest: contains('20.x', '.x')
50+
4951
- name: Remove Template-OSS
5052
if: matrix && matrix.node-version == '6.17.1'
5153
run: |
@@ -160,8 +162,11 @@ jobs:
160162
git config --global user.name "npm CLI robot"
161163
- name: Setup Node
162164
uses: actions/setup-node@v3
165+
id: node
163166
with:
164-
node-version: 18.x
167+
node-version: 20.x
168+
check-latest: contains('20.x', '.x')
169+
165170
- name: Remove Template-OSS
166171
if: matrix && matrix.node-version == '6.17.1'
167172
run: |
@@ -329,8 +334,11 @@ jobs:
329334
steps:
330335
- name: Setup Node
331336
uses: actions/setup-node@v3
337+
id: node
332338
with:
333-
node-version: 18.x
339+
node-version: 20.x
340+
check-latest: contains('20.x', '.x')
341+
334342
- name: View in Registry
335343
run: |
336344
EXIT_CODE=0

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@
3333
"templateOSS": {
3434
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
3535
"content": "./scripts/template-oss",
36-
"version": "4.17.0"
36+
"version": "4.19.0"
3737
}
3838
}

scripts/template-oss/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@ module.exports = {
1313
eslint: false,
1414
dependabot: false,
1515
oldNode: OLD_NODE,
16-
ciVersions: [
17-
OLD_NODE,
18-
'latest',
19-
],
16+
ciVersions: [OLD_NODE],
17+
backport: 6,
2018
allowPaths: [
2119
'/range.bnf',
2220
'/semver.js',

0 commit comments

Comments
 (0)