Skip to content

Commit d3836e6

Browse files
committed
chore: postinstall for dependabot template-oss PR
1 parent 4a16903 commit d3836e6

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
node-version:
8487
- 14.17.0
8588
- 14.x
@@ -88,13 +91,31 @@ jobs:
8891
- 18.0.0
8992
- 18.x
9093
- 20.x
94+
- 22.x
95+
exclude:
96+
- platform: { name: macOS, os: macos-latest, shell: bash }
97+
node-version: 14.17.0
98+
- platform: { name: macOS, os: macos-latest, shell: bash }
99+
node-version: 14.x
100+
- platform: { name: macOS, os: macos-13, shell: bash }
101+
node-version: 16.13.0
102+
- platform: { name: macOS, os: macos-13, shell: bash }
103+
node-version: 16.x
104+
- platform: { name: macOS, os: macos-13, shell: bash }
105+
node-version: 18.0.0
106+
- platform: { name: macOS, os: macos-13, shell: bash }
107+
node-version: 18.x
108+
- platform: { name: macOS, os: macos-13, shell: bash }
109+
node-version: 20.x
110+
- platform: { name: macOS, os: macos-13, shell: bash }
111+
node-version: 22.x
91112
runs-on: ${{ matrix.platform.os }}
92113
defaults:
93114
run:
94115
shell: ${{ matrix.platform.shell }}
95116
steps:
96117
- name: Checkout
97-
uses: actions/checkout@v3
118+
uses: actions/checkout@v4
98119
with:
99120
ref: ${{ inputs.ref }}
100121
- name: Setup Git User
@@ -110,7 +131,7 @@ jobs:
110131
token: ${{ secrets.GITHUB_TOKEN }}
111132
sha: ${{ inputs.check-sha }}
112133
- name: Setup Node
113-
uses: actions/setup-node@v3
134+
uses: actions/setup-node@v4
114135
id: node
115136
with:
116137
node-version: ${{ matrix.node-version }}

.github/workflows/ci.yml

+27-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
node-version:
6164
- 14.17.0
6265
- 14.x
@@ -65,19 +68,37 @@ jobs:
6568
- 18.0.0
6669
- 18.x
6770
- 20.x
71+
- 22.x
72+
exclude:
73+
- platform: { name: macOS, os: macos-latest, shell: bash }
74+
node-version: 14.17.0
75+
- platform: { name: macOS, os: macos-latest, shell: bash }
76+
node-version: 14.x
77+
- platform: { name: macOS, os: macos-13, shell: bash }
78+
node-version: 16.13.0
79+
- platform: { name: macOS, os: macos-13, shell: bash }
80+
node-version: 16.x
81+
- platform: { name: macOS, os: macos-13, shell: bash }
82+
node-version: 18.0.0
83+
- platform: { name: macOS, os: macos-13, shell: bash }
84+
node-version: 18.x
85+
- platform: { name: macOS, os: macos-13, shell: bash }
86+
node-version: 20.x
87+
- platform: { name: macOS, os: macos-13, shell: bash }
88+
node-version: 22.x
6889
runs-on: ${{ matrix.platform.os }}
6990
defaults:
7091
run:
7192
shell: ${{ matrix.platform.shell }}
7293
steps:
7394
- name: Checkout
74-
uses: actions/checkout@v3
95+
uses: actions/checkout@v4
7596
- name: Setup Git User
7697
run: |
7798
git config --global user.email "npm-cli+bot@github.com"
7899
git config --global user.name "npm CLI robot"
79100
- name: Setup Node
80-
uses: actions/setup-node@v3
101+
uses: actions/setup-node@v4
81102
id: node
82103
with:
83104
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
@@ -14,7 +14,7 @@
1414
},
1515
"repository": {
1616
"type": "git",
17-
"url": "https://github.com/npm/write-file-atomic.git"
17+
"url": "git+https://github.com/npm/write-file-atomic.git"
1818
},
1919
"keywords": [
2020
"writeFile",
@@ -45,7 +45,7 @@
4545
"templateOSS": {
4646
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
4747
"windowsCI": false,
48-
"version": "4.21.4",
48+
"version": "4.22.0",
4949
"publish": "true"
5050
},
5151
"tap": {

0 commit comments

Comments
 (0)