Skip to content

Commit 17a1013

Browse files
committedMay 3, 2024·
chore: postinstall for dependabot template-oss PR
1 parent 920a3d8 commit 17a1013

11 files changed

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

+23-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
@@ -89,13 +92,27 @@ jobs:
8992
- 18.0.0
9093
- 18.x
9194
- 20.x
95+
- 22.x
96+
exclude:
97+
- platform: { name: macOS, os: macos-13, shell: bash }
98+
node-version: 16.14.0
99+
- platform: { name: macOS, os: macos-13, shell: bash }
100+
node-version: 16.x
101+
- platform: { name: macOS, os: macos-13, shell: bash }
102+
node-version: 18.0.0
103+
- platform: { name: macOS, os: macos-13, shell: bash }
104+
node-version: 18.x
105+
- platform: { name: macOS, os: macos-13, shell: bash }
106+
node-version: 20.x
107+
- platform: { name: macOS, os: macos-13, shell: bash }
108+
node-version: 22.x
92109
runs-on: ${{ matrix.platform.os }}
93110
defaults:
94111
run:
95112
shell: ${{ matrix.platform.shell }}
96113
steps:
97114
- name: Checkout
98-
uses: actions/checkout@v3
115+
uses: actions/checkout@v4
99116
with:
100117
ref: ${{ inputs.ref }}
101118
- name: Setup Git User
@@ -111,7 +128,7 @@ jobs:
111128
token: ${{ secrets.GITHUB_TOKEN }}
112129
sha: ${{ inputs.check-sha }}
113130
- name: Setup Node
114-
uses: actions/setup-node@v3
131+
uses: actions/setup-node@v4
115132
id: node
116133
with:
117134
node-version: ${{ matrix.node-version }}

‎.github/workflows/ci.yml

+23-6
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ jobs:
2222
shell: bash
2323
steps:
2424
- name: Checkout
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
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:
@@ -57,6 +57,9 @@ jobs:
5757
- name: macOS
5858
os: macos-latest
5959
shell: bash
60+
- name: macOS
61+
os: macos-13
62+
shell: bash
6063
- name: Windows
6164
os: windows-latest
6265
shell: cmd
@@ -66,19 +69,33 @@ jobs:
6669
- 18.0.0
6770
- 18.x
6871
- 20.x
72+
- 22.x
73+
exclude:
74+
- platform: { name: macOS, os: macos-13, shell: bash }
75+
node-version: 16.14.0
76+
- platform: { name: macOS, os: macos-13, shell: bash }
77+
node-version: 16.x
78+
- platform: { name: macOS, os: macos-13, shell: bash }
79+
node-version: 18.0.0
80+
- platform: { name: macOS, os: macos-13, shell: bash }
81+
node-version: 18.x
82+
- platform: { name: macOS, os: macos-13, shell: bash }
83+
node-version: 20.x
84+
- platform: { name: macOS, os: macos-13, shell: bash }
85+
node-version: 22.x
6986
runs-on: ${{ matrix.platform.os }}
7087
defaults:
7188
run:
7289
shell: ${{ matrix.platform.shell }}
7390
steps:
7491
- name: Checkout
75-
uses: actions/checkout@v3
92+
uses: actions/checkout@v4
7693
- name: Setup Git User
7794
run: |
7895
git config --global user.email "npm-cli+bot@github.com"
7996
git config --global user.name "npm CLI robot"
8097
- name: Setup Node
81-
uses: actions/setup-node@v3
98+
uses: actions/setup-node@v4
8299
id: node
83100
with:
84101
node-version: ${{ matrix.node-version }}

‎.github/workflows/codeql-analysis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
security-events: write
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"

‎.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
@@ -30,17 +30,17 @@ jobs:
3030
shell: bash
3131
steps:
3232
- name: Checkout
33-
uses: actions/checkout@v3
33+
uses: actions/checkout@v4
3434
- name: Setup Git User
3535
run: |
3636
git config --global user.email "npm-cli+bot@github.com"
3737
git config --global user.name "npm CLI robot"
3838
- name: Setup Node
39-
uses: actions/setup-node@v3
39+
uses: actions/setup-node@v4
4040
id: node
4141
with:
42-
node-version: 20.x
43-
check-latest: contains('20.x', '.x')
42+
node-version: 22.x
43+
check-latest: contains('22.x', '.x')
4444
- name: Install Latest npm
4545
uses: ./.github/actions/install-latest-npm
4646
with:
@@ -54,7 +54,7 @@ jobs:
5454
run: npx --offline template-oss-release-please --branch="${{ github.ref_name }}" --backport="" --defaultTag="latest"
5555
- name: Create Release Manager Comment Text
5656
if: steps.release.outputs.pr-number
57-
uses: actions/github-script@v6
57+
uses: actions/github-script@v7
5858
id: comment-text
5959
with:
6060
result-encoding: string
@@ -107,7 +107,7 @@ jobs:
107107
shell: bash
108108
steps:
109109
- name: Checkout
110-
uses: actions/checkout@v3
110+
uses: actions/checkout@v4
111111
with:
112112
fetch-depth: 0
113113
ref: ${{ needs.release.outputs.pr-branch }}
@@ -116,11 +116,11 @@ jobs:
116116
git config --global user.email "npm-cli+bot@github.com"
117117
git config --global user.name "npm CLI robot"
118118
- name: Setup Node
119-
uses: actions/setup-node@v3
119+
uses: actions/setup-node@v4
120120
id: node
121121
with:
122-
node-version: 20.x
123-
check-latest: contains('20.x', '.x')
122+
node-version: 22.x
123+
check-latest: contains('22.x', '.x')
124124
- name: Install Latest npm
125125
uses: ./.github/actions/install-latest-npm
126126
with:
@@ -215,7 +215,7 @@ jobs:
215215
steps:
216216
- name: Create Release PR Comment Text
217217
id: comment-text
218-
uses: actions/github-script@v6
218+
uses: actions/github-script@v7
219219
env:
220220
RELEASES: ${{ needs.release.outputs.releases }}
221221
with:
@@ -280,7 +280,7 @@ jobs:
280280
- name: Create Release PR Comment Text
281281
id: comment-text
282282
if: steps.found-comment.outputs.comment-id
283-
uses: actions/github-script@v6
283+
uses: actions/github-script@v7
284284
env:
285285
RESULT: ${{ steps.conclusion.outputs.result }}
286286
BODY: ${{ steps.found-comment.outputs.comment-body }}

‎package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"repository": {
2323
"type": "git",
24-
"url": "https://github.com/npm/npm-registry-fetch.git"
24+
"url": "git+https://github.com/npm/npm-registry-fetch.git"
2525
},
2626
"keywords": [
2727
"npm",
@@ -62,7 +62,7 @@
6262
},
6363
"templateOSS": {
6464
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
65-
"version": "4.21.4",
65+
"version": "4.22.0",
6666
"publish": "true"
6767
}
6868
}

‎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.