Skip to content

Commit a893e39

Browse files
committed
chore: postinstall for dependabot template-oss PR
1 parent 406b31a commit a893e39

11 files changed

+92
-62
lines changed

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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 4 additions & 4 deletions
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

Lines changed: 27 additions & 6 deletions
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
- 18.0.0
9295
- 18.x
9396
- 20.x
97+
- 22.x
98+
exclude:
99+
- platform: { name: macOS, os: macos-latest, shell: bash }
100+
node-version: 14.17.0
101+
- platform: { name: macOS, os: macos-latest, shell: bash }
102+
node-version: 14.x
103+
- platform: { name: macOS, os: macos-13, shell: bash }
104+
node-version: 16.13.0
105+
- platform: { name: macOS, os: macos-13, shell: bash }
106+
node-version: 16.x
107+
- platform: { name: macOS, os: macos-13, shell: bash }
108+
node-version: 18.0.0
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

Lines changed: 27 additions & 6 deletions
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
@@ -68,19 +71,37 @@ jobs:
6871
- 18.0.0
6972
- 18.x
7073
- 20.x
74+
- 22.x
75+
exclude:
76+
- platform: { name: macOS, os: macos-latest, shell: bash }
77+
node-version: 14.17.0
78+
- platform: { name: macOS, os: macos-latest, shell: bash }
79+
node-version: 14.x
80+
- platform: { name: macOS, os: macos-13, shell: bash }
81+
node-version: 16.13.0
82+
- platform: { name: macOS, os: macos-13, shell: bash }
83+
node-version: 16.x
84+
- platform: { name: macOS, os: macos-13, shell: bash }
85+
node-version: 18.0.0
86+
- platform: { name: macOS, os: macos-13, shell: bash }
87+
node-version: 18.x
88+
- platform: { name: macOS, os: macos-13, shell: bash }
89+
node-version: 20.x
90+
- platform: { name: macOS, os: macos-13, shell: bash }
91+
node-version: 22.x
7192
runs-on: ${{ matrix.platform.os }}
7293
defaults:
7394
run:
7495
shell: ${{ matrix.platform.shell }}
7596
steps:
7697
- name: Checkout
77-
uses: actions/checkout@v3
98+
uses: actions/checkout@v4
7899
- name: Setup Git User
79100
run: |
80101
git config --global user.email "npm-cli+bot@github.com"
81102
git config --global user.name "npm CLI robot"
82103
- name: Setup Node
83-
uses: actions/setup-node@v3
104+
uses: actions/setup-node@v4
84105
id: node
85106
with:
86107
node-version: ${{ matrix.node-version }}

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
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

Lines changed: 4 additions & 4 deletions
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

Lines changed: 4 additions & 4 deletions
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

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@ jobs:
2525
shell: bash
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"
3232
git config --global user.name "npm CLI robot"
3333
- name: Setup Node
34-
uses: actions/setup-node@v3
34+
uses: actions/setup-node@v4
3535
id: node
3636
with:
37-
node-version: 20.x
38-
check-latest: contains('20.x', '.x')
37+
node-version: 22.x
38+
check-latest: contains('22.x', '.x')
3939
- name: Install Latest npm
4040
uses: ./.github/actions/install-latest-npm
4141
with:
@@ -46,17 +46,10 @@ jobs:
4646
run: |
4747
EXIT_CODE=0
4848
49-
function each_release {
50-
if npm view "$@" --loglevel=error > /dev/null; then
51-
echo 0
52-
else
53-
echo 1
54-
fi
55-
}
56-
5749
for release in $(echo $RELEASES | jq -r '.[] | @base64'); do
5850
SPEC="$(echo "$release" | base64 --decode | jq -r .pkgName)@$(echo "$release" | base64 --decode | jq -r .version)"
59-
STATUS=$(each_release "$SPEC")
51+
npm view "$SPEC" --json
52+
STATUS=$?
6053
if [[ "$STATUS" -eq 1 ]]; then
6154
EXIT_CODE=$STATUS
6255
echo "$SPEC ERROR"

.github/workflows/release.yml

Lines changed: 11 additions & 11 deletions
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:
@@ -276,7 +276,7 @@ jobs:
276276
- name: Create Release PR Comment Text
277277
id: comment-text
278278
if: steps.found-comment.outputs.comment-id
279-
uses: actions/github-script@v6
279+
uses: actions/github-script@v7
280280
env:
281281
RESULT: ${{ steps.conclusion.outputs.result }}
282282
BODY: ${{ steps.found-comment.outputs.comment-body }}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
"repository": {
2727
"type": "git",
28-
"url": "https://github.com/npm/validate-npm-package-name.git"
28+
"url": "git+https://github.com/npm/validate-npm-package-name.git"
2929
},
3030
"keywords": [
3131
"npm",
@@ -48,7 +48,7 @@
4848
},
4949
"templateOSS": {
5050
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
51-
"version": "4.21.4"
51+
"version": "4.22.0"
5252
},
5353
"tap": {
5454
"nyc-arg": [

0 commit comments

Comments
 (0)