Skip to content

Commit f77a97c

Browse files
committed
chore: postinstall for dependabot template-oss PR
1 parent 3b70509 commit f77a97c

11 files changed

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

+29-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
@@ -92,13 +95,33 @@ jobs:
9295
- 16.x
9396
- 18.x
9497
- 20.x
98+
- 22.x
99+
exclude:
100+
- platform: { name: macOS, os: macos-latest, shell: bash }
101+
node-version: 12.13.0
102+
- platform: { name: macOS, os: macos-latest, shell: bash }
103+
node-version: 12.x
104+
- platform: { name: macOS, os: macos-latest, shell: bash }
105+
node-version: 14.15.0
106+
- platform: { name: macOS, os: macos-latest, shell: bash }
107+
node-version: 14.x
108+
- platform: { name: macOS, os: macos-13, shell: bash }
109+
node-version: 16.0.0
110+
- platform: { name: macOS, os: macos-13, shell: bash }
111+
node-version: 16.x
112+
- platform: { name: macOS, os: macos-13, shell: bash }
113+
node-version: 18.x
114+
- platform: { name: macOS, os: macos-13, shell: bash }
115+
node-version: 20.x
116+
- platform: { name: macOS, os: macos-13, shell: bash }
117+
node-version: 22.x
95118
runs-on: ${{ matrix.platform.os }}
96119
defaults:
97120
run:
98121
shell: ${{ matrix.platform.shell }}
99122
steps:
100123
- name: Checkout
101-
uses: actions/checkout@v3
124+
uses: actions/checkout@v4
102125
with:
103126
ref: ${{ inputs.ref }}
104127
- name: Setup Git User
@@ -114,7 +137,7 @@ jobs:
114137
token: ${{ secrets.GITHUB_TOKEN }}
115138
sha: ${{ inputs.check-sha }}
116139
- name: Setup Node
117-
uses: actions/setup-node@v3
140+
uses: actions/setup-node@v4
118141
id: node
119142
with:
120143
node-version: ${{ matrix.node-version }}

.github/workflows/ci.yml

+29-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
@@ -70,19 +73,39 @@ jobs:
7073
- 16.x
7174
- 18.x
7275
- 20.x
76+
- 22.x
77+
exclude:
78+
- platform: { name: macOS, os: macos-latest, shell: bash }
79+
node-version: 12.13.0
80+
- platform: { name: macOS, os: macos-latest, shell: bash }
81+
node-version: 12.x
82+
- platform: { name: macOS, os: macos-latest, shell: bash }
83+
node-version: 14.15.0
84+
- platform: { name: macOS, os: macos-latest, shell: bash }
85+
node-version: 14.x
86+
- platform: { name: macOS, os: macos-13, shell: bash }
87+
node-version: 16.0.0
88+
- platform: { name: macOS, os: macos-13, shell: bash }
89+
node-version: 16.x
90+
- platform: { name: macOS, os: macos-13, shell: bash }
91+
node-version: 18.x
92+
- platform: { name: macOS, os: macos-13, shell: bash }
93+
node-version: 20.x
94+
- platform: { name: macOS, os: macos-13, shell: bash }
95+
node-version: 22.x
7396
runs-on: ${{ matrix.platform.os }}
7497
defaults:
7598
run:
7699
shell: ${{ matrix.platform.shell }}
77100
steps:
78101
- name: Checkout
79-
uses: actions/checkout@v3
102+
uses: actions/checkout@v4
80103
- name: Setup Git User
81104
run: |
82105
git config --global user.email "npm-cli+bot@github.com"
83106
git config --global user.name "npm CLI robot"
84107
- name: Setup Node
85-
uses: actions/setup-node@v3
108+
uses: actions/setup-node@v4
86109
id: node
87110
with:
88111
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="5" --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
@@ -5,7 +5,7 @@
55
"main": "./lib/index.js",
66
"repository": {
77
"type": "git",
8-
"url": "https://github.com/npm/hosted-git-info.git"
8+
"url": "git+https://github.com/npm/hosted-git-info.git"
99
},
1010
"keywords": [
1111
"git",
@@ -54,7 +54,7 @@
5454
},
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
"backport": 5,
5959
"publish": true
6060
}

0 commit comments

Comments
 (0)