@npmcli/template-oss 4.6.2 → 4.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,6 +2,12 @@
2
2
  name: CI - Release
3
3
 
4
4
  on:
5
+ workflow_dispatch:
6
+ inputs:
7
+ ref:
8
+ required: true
9
+ type: string
10
+ default: {{ defaultBranch }}
5
11
  workflow_call:
6
12
  inputs:
7
13
  ref:
@@ -15,7 +21,7 @@ jobs:
15
21
  lint-all:
16
22
  {{> job
17
23
  jobName="Lint All"
18
- jobCheck=(obj sha="${{ inputs.check-sha }}")
24
+ jobCheck=(obj sha="${{ inputs.check-sha }}" if="inputs.check-sha")
19
25
  jobCheckout=(obj ref="${{ inputs.ref }}")
20
26
  }}
21
27
  {{> stepLint jobRunFlags=allFlags }}
@@ -24,7 +30,7 @@ jobs:
24
30
  test-all:
25
31
  {{> jobMatrix
26
32
  jobName="Test All"
27
- jobCheck=(obj sha="${{ inputs.check-sha }}")
33
+ jobCheck=(obj sha="${{ inputs.check-sha }}" if="inputs.check-sha")
28
34
  jobCheckout=(obj ref="${{ inputs.ref }}")
29
35
  }}
30
36
  {{> stepTest jobRunFlags=allFlags }}
@@ -116,7 +116,7 @@ module.exports = {
116
116
  windowsCI: true,
117
117
  macCI: true,
118
118
  branches: ['main', 'latest'],
119
- releaseBranches: [],
119
+ defaultBranch: 'main',
120
120
  distPaths: [
121
121
  'bin/',
122
122
  'lib/',
@@ -48,7 +48,7 @@ jobs:
48
48
  if [[ "$\{{ steps.metadata.outputs.update-type }}" == "version-update:semver-major" ]]; then
49
49
  prefix='feat!'
50
50
  else
51
- prefix='chore!'
51
+ prefix='chore'
52
52
  fi
53
53
  echo "::set-output name=message::$prefix: postinstall for dependabot template-oss PR"
54
54
 
@@ -7,9 +7,7 @@ on:
7
7
  {{#each branches}}
8
8
  - {{ . }}
9
9
  {{/each}}
10
- {{#each releaseBranches }}
11
- - {{ . }}
12
- {{/each}}
10
+ - release/v*
13
11
 
14
12
  permissions:
15
13
  contents: write
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npmcli/template-oss",
3
- "version": "4.6.2",
3
+ "version": "4.7.0",
4
4
  "description": "templated files used in npm CLI team oss projects",
5
5
  "main": "lib/content/index.js",
6
6
  "bin": {