@halospv3/hce.shared-config 2.0.1 → 2.1.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [2.1.0](https://github.com/halospv3/hce.shared/compare/v2.0.1...v2.1.0) (2024-03-18)
2
+
3
+
4
+ ### Features
5
+
6
+ * add plugin '@semantic-release/exec' ([61447fc](https://github.com/halospv3/hce.shared/commit/61447fcdef19db8cd7f103edd54354fa5c4cb202))
7
+
1
8
  ## [2.0.1](https://github.com/halospv3/hce.shared/compare/v2.0.0...v2.0.1) (2024-03-18)
2
9
 
3
10
 
package/README.md CHANGED
@@ -15,13 +15,32 @@ npm install --save-dev @halospv3/hce.shared-config
15
15
 
16
16
  ### 2. Customize Semantic Release
17
17
 
18
- WARNING! Defining a property will *overwrite* the previous value. Arrays and objects are *not* merged. You can...
19
- - Assign to top-level variables to avoid modifying the plugins array.
20
- - Write your config in CJS to manually merge objects and arrays.
21
-
22
- Configs:
23
- - `hce.shared-config`: [static/.releaserc.yml](static/.releaserc.yml)
24
- - [dotnet/.releaserc.cjs](dotnet/.releaserc.cjs) based on [BinToss/GroupBox.Avalonia's Semantic Release config](https://github.com/BinToss/GroupBox.Avalonia).
18
+ WARNING! Defining a property will *overwrite* the previous value. Arrays and objects are *not* merged. You can...
19
+ - Assign to top-level variables to avoid modifying the plugins array.
20
+ - Write your config in CJS and manually merge objects and arrays.
21
+
22
+ **Configs**
23
+ - `hce.shared-config`: [static/.releaserc.yml](static/.releaserc.yml)
24
+ - [dotnet/.releaserc.cjs](dotnet/.releaserc.cjs) based on [BinToss/GroupBox.Avalonia's Semantic Release config](https://github.com/BinToss/GroupBox.Avalonia).
25
+
26
+ **Notable Plugin Properties**
27
+ - [`@semantic-release/commit-analyzer`](https://github.com/semantic-release/commit-analyzer#options)
28
+ - preset (set to conventionalcommits)
29
+ - parserOpts
30
+ - releaseRules
31
+ - [`@semantic-release/release-notes-generator`](https://github.com/semantic-release/release-notes-generator#options)
32
+ - preset (set to conventionalcommits)
33
+ - parserOpts
34
+ - writerOpts
35
+ - [`@semantic-release/changelog`](https://github.com/semantic-release/changelog#options)
36
+ - changelogFile (default: CHANGELOG.md)
37
+ - [`@semantic-release/git`](https://github.com/semantic-release/git#options)
38
+ - assets (default: ['CHANGELOG.md', 'package.json', 'package-lock.json', 'npm-shrinkwrap.json'])
39
+ - `@semantic-release/exec`
40
+ - prepareCmd
41
+ - [`@semantic-release/github`](https://github.com/semantic-release/github#options)
42
+ - assets
43
+ - draftRelease (default: false)
25
44
 
26
45
  ### 3. Set Up CommitLint
27
46
 
@@ -25,8 +25,8 @@ if (process.argv.includes("--debug") || process.argv.includes("--verbose")) {
25
25
  const newPlugins = hceSharedConfig.plugins;
26
26
 
27
27
  //#region Insert-Edit Plugins
28
- /* Insert and/or configure plugins. Can be used to load plugin A before plugin B
29
- or edit a plugin's existing configuration */
28
+ /* Insert and/or configure plugins. Can be used to load plugin A's Prepare step
29
+ before plugin B's Prepare step. or edit a plugin's existing configuration */
30
30
  for (var i = 0; i < newPlugins.length; i++) {
31
31
  /** e.g.
32
32
  //#region Git Options | https://github.com/semantic-release/git#options
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@halospv3/hce.shared-config",
3
- "version": "2.0.1",
3
+ "version": "2.1.0",
4
4
  "description": "Automate commit message quality, changelogs, and CI/CD releases. Exports a semantic-release shareable configuration deserialized from this package's '.releaserc.yml'. Shared resources for .NET projects are also distributed with this package.",
5
5
  "keywords": [
6
6
  "halo",
@@ -45,6 +45,7 @@
45
45
  "@commitlint/config-conventional": "^19.1.0",
46
46
  "@semantic-release/changelog": "^6.0.3",
47
47
  "@semantic-release/commit-analyzer": "^12.0.0",
48
+ "@semantic-release/exec": "^6.0.3",
48
49
  "@semantic-release/git": "^10.0.1",
49
50
  "@semantic-release/github": "^10.0.2",
50
51
  "@semantic-release/npm": "^12.0.0",
@@ -20,13 +20,17 @@ plugins: # https://semantic-release.gitbook.io/semantic-release/v/beta/usage/con
20
20
  - assets:
21
21
  - README.md
22
22
  - CHANGELOG.md
23
+ # Arbitrary shell commands - https://github.com/semantic-release/exec
24
+ # hint: set 'prepareCmd' to `dotnet publish`. This can be a top-level property!
25
+ # Because this is sorted after @semantic-release/git, the new Git tag will
26
+ # be visible to dotnet (and GitVersion). Dotnet artifacts will be
27
+ # versioned accordingly.
28
+ # Plugins' Steps: https://github.com/semantic-release/semantic-release/blob/master/docs/extending/plugins-list.md
29
+ - "@semantic-release/exec"
23
30
  - - "@semantic-release/github"
24
31
  - assets:
25
32
  - path: ./publish/*
26
- ## (OPTIONAL) update Version strings
33
+
34
+ ## (OPTIONAL) update static Version strings.
27
35
  # https://github.com/jpoehnelt/semantic-release-replace-plugin
28
36
  # https://github.com/droidsolutions/semantic-release-update-file
29
-
30
- ## Arbitrary shell commands
31
- # (useful for `dotnet publish publish/`, but should be run after version tag is pushed so InformationalVersionInfo isn't a subversion)
32
- # https://github.com/semantic-release/exec