Skip to content

Commit 5feeb7f

Browse files
committedMay 3, 2024·
chore: postinstall for dependabot template-oss PR
1 parent dd09b60 commit 5feeb7f

11 files changed

+92
-62
lines changed
 

‎.github/actions/create-check/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ runs:
1717
using: "composite"
1818
steps:
1919
- name: Get Workflow Job
20-
uses: actions/github-script@v6
20+
uses: actions/github-script@v7
2121
id: workflow
2222
env:
2323
JOB_NAME: "${{ inputs.name }}"

‎.github/workflows/audit.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ jobs:
1818
shell: bash
1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
2222
- name: Setup Git User
2323
run: |
2424
git config --global user.email "npm-cli+bot@github.com"
2525
git config --global user.name "npm CLI robot"
2626
- name: Setup Node
27-
uses: actions/setup-node@v3
27+
uses: actions/setup-node@v4
2828
id: node
2929
with:
30-
node-version: 20.x
31-
check-latest: contains('20.x', '.x')
30+
node-version: 22.x
31+
check-latest: contains('22.x', '.x')
3232
- name: Install Latest npm
3333
uses: ./.github/actions/install-latest-npm
3434
with:

‎.github/workflows/ci-release.yml

+27-6
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
shell: bash
2929
steps:
3030
- name: Checkout
31-
uses: actions/checkout@v3
31+
uses: actions/checkout@v4
3232
with:
3333
ref: ${{ inputs.ref }}
3434
- name: Setup Git User
@@ -44,11 +44,11 @@ jobs:
4444
token: ${{ secrets.GITHUB_TOKEN }}
4545
sha: ${{ inputs.check-sha }}
4646
- name: Setup Node
47-
uses: actions/setup-node@v3
47+
uses: actions/setup-node@v4
4848
id: node
4949
with:
50-
node-version: 20.x
51-
check-latest: contains('20.x', '.x')
50+
node-version: 22.x
51+
check-latest: contains('22.x', '.x')
5252
- name: Install Latest npm
5353
uses: ./.github/actions/install-latest-npm
5454
with:
@@ -80,6 +80,9 @@ jobs:
8080
- name: macOS
8181
os: macos-latest
8282
shell: bash
83+
- name: macOS
84+
os: macos-13
85+
shell: bash
8386
- name: Windows
8487
os: windows-latest
8588
shell: cmd
@@ -91,13 +94,31 @@ jobs:
9194
- 16.x
9295
- 18.x
9396
- 20.x
97+
- 22.x
98+
exclude:
99+
- platform: { name: macOS, os: macos-latest, shell: bash }
100+
node-version: 10.0.0
101+
- platform: { name: macOS, os: macos-latest, shell: bash }
102+
node-version: 10.x
103+
- platform: { name: macOS, os: macos-latest, shell: bash }
104+
node-version: 12.x
105+
- platform: { name: macOS, os: macos-latest, shell: bash }
106+
node-version: 14.x
107+
- platform: { name: macOS, os: macos-13, shell: bash }
108+
node-version: 16.x
109+
- platform: { name: macOS, os: macos-13, shell: bash }
110+
node-version: 18.x
111+
- platform: { name: macOS, os: macos-13, shell: bash }
112+
node-version: 20.x
113+
- platform: { name: macOS, os: macos-13, shell: bash }
114+
node-version: 22.x
94115
runs-on: ${{ matrix.platform.os }}
95116
defaults:
96117
run:
97118
shell: ${{ matrix.platform.shell }}
98119
steps:
99120
- name: Checkout
100-
uses: actions/checkout@v3
121+
uses: actions/checkout@v4
101122
with:
102123
ref: ${{ inputs.ref }}
103124
- name: Setup Git User
@@ -113,7 +134,7 @@ jobs:
113134
token: ${{ secrets.GITHUB_TOKEN }}
114135
sha: ${{ inputs.check-sha }}
115136
- name: Setup Node
116-
uses: actions/setup-node@v3
137+
uses: actions/setup-node@v4
117138
id: node
118139
with:
119140
node-version: ${{ matrix.node-version }}

‎.github/workflows/ci.yml

+27-6
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ jobs:
2323
shell: bash
2424
steps:
2525
- name: Checkout
26-
uses: actions/checkout@v3
26+
uses: actions/checkout@v4
2727
- name: Setup Git User
2828
run: |
2929
git config --global user.email "npm-cli+bot@github.com"
3030
git config --global user.name "npm CLI robot"
3131
- name: Setup Node
32-
uses: actions/setup-node@v3
32+
uses: actions/setup-node@v4
3333
id: node
3434
with:
35-
node-version: 20.x
36-
check-latest: contains('20.x', '.x')
35+
node-version: 22.x
36+
check-latest: contains('22.x', '.x')
3737
- name: Install Latest npm
3838
uses: ./.github/actions/install-latest-npm
3939
with:
@@ -58,6 +58,9 @@ jobs:
5858
- name: macOS
5959
os: macos-latest
6060
shell: bash
61+
- name: macOS
62+
os: macos-13
63+
shell: bash
6164
- name: Windows
6265
os: windows-latest
6366
shell: cmd
@@ -69,19 +72,37 @@ jobs:
6972
- 16.x
7073
- 18.x
7174
- 20.x
75+
- 22.x
76+
exclude:
77+
- platform: { name: macOS, os: macos-latest, shell: bash }
78+
node-version: 10.0.0
79+
- platform: { name: macOS, os: macos-latest, shell: bash }
80+
node-version: 10.x
81+
- platform: { name: macOS, os: macos-latest, shell: bash }
82+
node-version: 12.x
83+
- platform: { name: macOS, os: macos-latest, shell: bash }
84+
node-version: 14.x
85+
- platform: { name: macOS, os: macos-13, shell: bash }
86+
node-version: 16.x
87+
- platform: { name: macOS, os: macos-13, shell: bash }
88+
node-version: 18.x
89+
- platform: { name: macOS, os: macos-13, shell: bash }
90+
node-version: 20.x
91+
- platform: { name: macOS, os: macos-13, shell: bash }
92+
node-version: 22.x
7293
runs-on: ${{ matrix.platform.os }}
7394
defaults:
7495
run:
7596
shell: ${{ matrix.platform.shell }}
7697
steps:
7798
- name: Checkout
78-
uses: actions/checkout@v3
99+
uses: actions/checkout@v4
79100
- name: Setup Git User
80101
run: |
81102
git config --global user.email "npm-cli+bot@github.com"
82103
git config --global user.name "npm CLI robot"
83104
- name: Setup Node
84-
uses: actions/setup-node@v3
105+
uses: actions/setup-node@v4
85106
id: node
86107
with:
87108
node-version: ${{ matrix.node-version }}

‎.github/workflows/codeql-analysis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
security-events: write
2626
steps:
2727
- name: Checkout
28-
uses: actions/checkout@v3
28+
uses: actions/checkout@v4
2929
- name: Setup Git User
3030
run: |
3131
git config --global user.email "npm-cli+bot@github.com"

‎.github/workflows/post-dependabot.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@ jobs:
1717
shell: bash
1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121
with:
2222
ref: ${{ github.event.pull_request.head.ref }}
2323
- name: Setup Git User
2424
run: |
2525
git config --global user.email "npm-cli+bot@github.com"
2626
git config --global user.name "npm CLI robot"
2727
- name: Setup Node
28-
uses: actions/setup-node@v3
28+
uses: actions/setup-node@v4
2929
id: node
3030
with:
31-
node-version: 20.x
32-
check-latest: contains('20.x', '.x')
31+
node-version: 22.x
32+
check-latest: contains('22.x', '.x')
3333
- name: Install Latest npm
3434
uses: ./.github/actions/install-latest-npm
3535
with:

‎.github/workflows/pull-request.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,19 @@ jobs:
2020
shell: bash
2121
steps:
2222
- name: Checkout
23-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
2424
with:
2525
fetch-depth: 0
2626
- name: Setup Git User
2727
run: |
2828
git config --global user.email "npm-cli+bot@github.com"
2929
git config --global user.name "npm CLI robot"
3030
- name: Setup Node
31-
uses: actions/setup-node@v3
31+
uses: actions/setup-node@v4
3232
id: node
3333
with:
34-
node-version: 20.x
35-
check-latest: contains('20.x', '.x')
34+
node-version: 22.x
35+
check-latest: contains('22.x', '.x')
3636
- name: Install Latest npm
3737
uses: ./.github/actions/install-latest-npm
3838
with:

‎.github/workflows/release-integration.yml

+6-13
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,19 @@ jobs:
3030
id-token: write
3131
steps:
3232
- name: Checkout
33-
uses: actions/checkout@v3
33+
uses: actions/checkout@v4
3434
with:
3535
ref: ${{ fromJSON(inputs.releases)[0].tagName }}
3636
- name: Setup Git User
3737
run: |
3838
git config --global user.email "npm-cli+bot@github.com"
3939
git config --global user.name "npm CLI robot"
4040
- name: Setup Node
41-
uses: actions/setup-node@v3
41+
uses: actions/setup-node@v4
4242
id: node
4343
with:
44-
node-version: 20.x
45-
check-latest: contains('20.x', '.x')
44+
node-version: 22.x
45+
check-latest: contains('22.x', '.x')
4646
- name: Install Latest npm
4747
uses: ./.github/actions/install-latest-npm
4848
with:
@@ -58,17 +58,10 @@ jobs:
5858
run: |
5959
EXIT_CODE=0
6060
61-
function each_release {
62-
if npm publish --provenance --tag="$1"; then
63-
echo 0
64-
else
65-
echo 1
66-
fi
67-
}
68-
6961
for release in $(echo $RELEASES | jq -r '.[] | @base64'); do
7062
PUBLISH_TAG=$(echo "$release" | base64 --decode | jq -r .publishTag)
71-
STATUS=$(each_release "$PUBLISH_TAG")
63+
npm publish --provenance --tag="$PUBLISH_TAG"
64+
STATUS=$?
7265
if [[ "$STATUS" -eq 1 ]]; then
7366
EXIT_CODE=$STATUS
7467
fi

‎.github/workflows/release.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@ jobs:
3131
shell: bash
3232
steps:
3333
- name: Checkout
34-
uses: actions/checkout@v3
34+
uses: actions/checkout@v4
3535
- name: Setup Git User
3636
run: |
3737
git config --global user.email "npm-cli+bot@github.com"
3838
git config --global user.name "npm CLI robot"
3939
- name: Setup Node
40-
uses: actions/setup-node@v3
40+
uses: actions/setup-node@v4
4141
id: node
4242
with:
43-
node-version: 20.x
44-
check-latest: contains('20.x', '.x')
43+
node-version: 22.x
44+
check-latest: contains('22.x', '.x')
4545
- name: Install Latest npm
4646
uses: ./.github/actions/install-latest-npm
4747
with:
@@ -55,7 +55,7 @@ jobs:
5555
run: npx --offline template-oss-release-please --branch="${{ github.ref_name }}" --backport="" --defaultTag="latest"
5656
- name: Create Release Manager Comment Text
5757
if: steps.release.outputs.pr-number
58-
uses: actions/github-script@v6
58+
uses: actions/github-script@v7
5959
id: comment-text
6060
with:
6161
result-encoding: string
@@ -108,7 +108,7 @@ jobs:
108108
shell: bash
109109
steps:
110110
- name: Checkout
111-
uses: actions/checkout@v3
111+
uses: actions/checkout@v4
112112
with:
113113
fetch-depth: 0
114114
ref: ${{ needs.release.outputs.pr-branch }}
@@ -117,11 +117,11 @@ jobs:
117117
git config --global user.email "npm-cli+bot@github.com"
118118
git config --global user.name "npm CLI robot"
119119
- name: Setup Node
120-
uses: actions/setup-node@v3
120+
uses: actions/setup-node@v4
121121
id: node
122122
with:
123-
node-version: 20.x
124-
check-latest: contains('20.x', '.x')
123+
node-version: 22.x
124+
check-latest: contains('22.x', '.x')
125125
- name: Install Latest npm
126126
uses: ./.github/actions/install-latest-npm
127127
with:
@@ -216,7 +216,7 @@ jobs:
216216
steps:
217217
- name: Create Release PR Comment Text
218218
id: comment-text
219-
uses: actions/github-script@v6
219+
uses: actions/github-script@v7
220220
env:
221221
RELEASES: ${{ needs.release.outputs.releases }}
222222
with:
@@ -281,7 +281,7 @@ jobs:
281281
- name: Create Release PR Comment Text
282282
id: comment-text
283283
if: steps.found-comment.outputs.comment-id
284-
uses: actions/github-script@v6
284+
uses: actions/github-script@v7
285285
env:
286286
RESULT: ${{ steps.conclusion.outputs.result }}
287287
BODY: ${{ steps.found-comment.outputs.comment-body }}

‎package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"license": "ISC",
2222
"repository": {
2323
"type": "git",
24-
"url": "https://github.com/npm/node-semver.git"
24+
"url": "git+https://github.com/npm/node-semver.git"
2525
},
2626
"bin": {
2727
"semver": "bin/semver.js"
@@ -54,7 +54,7 @@
5454
"author": "GitHub Inc.",
5555
"templateOSS": {
5656
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
57-
"version": "4.21.4",
57+
"version": "4.22.0",
5858
"engines": ">=10",
5959
"distPaths": [
6060
"classes/",

‎release-please-config.json

+5-10
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,27 @@
55
{
66
"type": "feat",
77
"section": "Features",
8-
"hidden": false,
9-
"collapse": false
8+
"hidden": false
109
},
1110
{
1211
"type": "fix",
1312
"section": "Bug Fixes",
14-
"hidden": false,
15-
"collapse": false
13+
"hidden": false
1614
},
1715
{
1816
"type": "docs",
1917
"section": "Documentation",
20-
"hidden": false,
21-
"collapse": false
18+
"hidden": false
2219
},
2320
{
2421
"type": "deps",
2522
"section": "Dependencies",
26-
"hidden": false,
27-
"collapse": false
23+
"hidden": false
2824
},
2925
{
3026
"type": "chore",
3127
"section": "Chores",
32-
"hidden": false,
33-
"collapse": false
28+
"hidden": true
3429
}
3530
],
3631
"packages": {

0 commit comments

Comments
 (0)
Please sign in to comment.