Skip to content

Commit 1e3fadf

Browse files
committedOct 27, 2022
chore: postinstall for dependabot template-oss PR
1 parent 24045dc commit 1e3fadf

File tree

4 files changed

+21
-14
lines changed

4 files changed

+21
-14
lines changed
 

‎.github/workflows/ci-release.yml

+12-6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
name: CI - Release
44

55
on:
6+
workflow_dispatch:
7+
inputs:
8+
ref:
9+
required: true
10+
type: string
11+
default: main
612
workflow_call:
713
inputs:
814
ref:
@@ -23,7 +29,7 @@ jobs:
2329
steps:
2430
- name: Get Workflow Job
2531
uses: actions/github-script@v6
26-
32+
if: inputs.check-sha
2733
id: check-output
2834
env:
2935
JOB_NAME: "Lint All"
@@ -57,7 +63,7 @@ jobs:
5763
- name: Create Check
5864
uses: LouisBrunner/checks-action@v1.3.1
5965
id: check
60-
66+
if: inputs.check-sha
6167
with:
6268
token: ${{ secrets.GITHUB_TOKEN }}
6369
status: in_progress
@@ -91,7 +97,7 @@ jobs:
9197
run: npm run postlint --ignore-scripts
9298
- name: Conclude Check
9399
uses: LouisBrunner/checks-action@v1.3.1
94-
if: always()
100+
if: steps.check.outputs.check_id && always()
95101
with:
96102
token: ${{ secrets.GITHUB_TOKEN }}
97103
conclusion: ${{ job.status }}
@@ -126,7 +132,7 @@ jobs:
126132
steps:
127133
- name: Get Workflow Job
128134
uses: actions/github-script@v6
129-
135+
if: inputs.check-sha
130136
id: check-output
131137
env:
132138
JOB_NAME: "Test All"
@@ -160,7 +166,7 @@ jobs:
160166
- name: Create Check
161167
uses: LouisBrunner/checks-action@v1.3.1
162168
id: check
163-
169+
if: inputs.check-sha
164170
with:
165171
token: ${{ secrets.GITHUB_TOKEN }}
166172
status: in_progress
@@ -210,7 +216,7 @@ jobs:
210216
run: npm test --ignore-scripts
211217
- name: Conclude Check
212218
uses: LouisBrunner/checks-action@v1.3.1
213-
if: always()
219+
if: steps.check.outputs.check_id && always()
214220
with:
215221
token: ${{ secrets.GITHUB_TOKEN }}
216222
conclusion: ${{ job.status }}

‎.github/workflows/post-dependabot.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
if [[ "${{ steps.metadata.outputs.update-type }}" == "version-update:semver-major" ]]; then
7373
prefix='feat!'
7474
else
75-
prefix='chore!'
75+
prefix='chore'
7676
fi
7777
echo "::set-output name=message::$prefix: postinstall for dependabot template-oss PR"
7878

‎.github/workflows/release.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
branches:
99
- main
1010
- latest
11+
- release/v*
1112

1213
permissions:
1314
contents: write
@@ -91,7 +92,7 @@ jobs:
9192
return commentId
9293
- name: Get Workflow Job
9394
uses: actions/github-script@v6
94-
if: steps.release.outputs.pr-number
95+
if: steps.release.outputs.pr-sha
9596
id: check-output
9697
env:
9798
JOB_NAME: "Release"
@@ -125,7 +126,7 @@ jobs:
125126
- name: Create Check
126127
uses: LouisBrunner/checks-action@v1.3.1
127128
id: check
128-
if: steps.release.outputs.pr-number
129+
if: steps.release.outputs.pr-sha
129130
with:
130131
token: ${{ secrets.GITHUB_TOKEN }}
131132
status: in_progress
@@ -185,7 +186,7 @@ jobs:
185186
echo "::set-output name=sha::$(git rev-parse HEAD)"
186187
- name: Get Workflow Job
187188
uses: actions/github-script@v6
188-
189+
if: steps.commit.outputs.sha
189190
id: check-output
190191
env:
191192
JOB_NAME: "Update - Release"
@@ -219,7 +220,7 @@ jobs:
219220
- name: Create Check
220221
uses: LouisBrunner/checks-action@v1.3.1
221222
id: check
222-
223+
if: steps.commit.outputs.sha
223224
with:
224225
token: ${{ secrets.GITHUB_TOKEN }}
225226
status: in_progress
@@ -228,7 +229,7 @@ jobs:
228229
output: ${{ steps.check-output.outputs.result }}
229230
- name: Conclude Check
230231
uses: LouisBrunner/checks-action@v1.3.1
231-
if: always()
232+
if: needs.release.outputs.check-id && always()
232233
with:
233234
token: ${{ secrets.GITHUB_TOKEN }}
234235
conclusion: ${{ job.status }}
@@ -266,7 +267,7 @@ jobs:
266267
echo "::set-output name=result::$result"
267268
- name: Conclude Check
268269
uses: LouisBrunner/checks-action@v1.3.1
269-
if: always()
270+
if: needs.update.outputs.check-id && always()
270271
with:
271272
token: ${{ secrets.GITHUB_TOKEN }}
272273
conclusion: ${{ steps.needs-result.outputs.result }}

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
},
5757
"templateOSS": {
5858
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
59-
"version": "4.6.2",
59+
"version": "4.7.1",
6060
"content": "scripts/template-oss",
6161
"engines": ">=10",
6262
"distPaths": [

0 commit comments

Comments
 (0)
Please sign in to comment.