@halospv3/hce.shared-config 1.2.4 → 1.2.6
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 +9 -0
- package/dotnet/.github/workflows/dotnet-release.yml +3 -3
- package/dotnet/.github/workflows/sample-dotnet-build.yml +1 -1
- package/package.json +7 -7
- package/cjs/index-wrapper.mjs +0 -6
- package/cjs/index.cjs +0 -40
- package/cjs/index.cjs.map +0 -1
- package/cjs/index.d.ts +0 -8
- package/cjs/index.d.ts.map +0 -1
- package/src/index.ts +0 -42
- package/static/.releaserc.yml +0 -32
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## [1.2.6](https://github.com/halospv3/hce.shared/compare/v1.2.5...v1.2.6) (2024-01-05)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** update deps to latest stable versions ([dce4301](https://github.com/halospv3/hce.shared/commit/dce4301d4b0af26ba1b41aa7928ff79e7923bcb9))
|
|
7
|
+
|
|
8
|
+
## [1.2.5](https://github.com/halospv3/hce.shared/compare/v1.2.4...v1.2.5) (2023-12-24)
|
|
9
|
+
|
|
1
10
|
## [1.2.4](https://github.com/halospv3/hce.shared/compare/v1.2.3...v1.2.4) (2023-11-09)
|
|
2
11
|
|
|
3
12
|
|
|
@@ -30,7 +30,7 @@ jobs:
|
|
|
30
30
|
|
|
31
31
|
steps:
|
|
32
32
|
- name: Wait for build to succeed
|
|
33
|
-
uses: lewagon/wait-on-check-action@v1.3.
|
|
33
|
+
uses: lewagon/wait-on-check-action@v1.3.3
|
|
34
34
|
with:
|
|
35
35
|
ref: ${{ github.ref }}
|
|
36
36
|
check-name: 'Build (${{matrix.RID}}, ${{matrix.ASSEMBLYNAME}})'
|
|
@@ -44,7 +44,7 @@ jobs:
|
|
|
44
44
|
with:
|
|
45
45
|
fetch-depth: 0 # Required by GitVersion
|
|
46
46
|
submodules: "recursive" # submodule fetch depth unknown
|
|
47
|
-
- uses: actions/setup-dotnet@
|
|
47
|
+
- uses: actions/setup-dotnet@v4
|
|
48
48
|
- name: Setup Node
|
|
49
49
|
uses: actions/setup-node@v4
|
|
50
50
|
- run: npm ci # Required by Semantic Release
|
|
@@ -75,7 +75,7 @@ jobs:
|
|
|
75
75
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
76
76
|
|
|
77
77
|
- name: Upload Artifact
|
|
78
|
-
uses: actions/upload-artifact@
|
|
78
|
+
uses: actions/upload-artifact@v4
|
|
79
79
|
with:
|
|
80
80
|
name: publish-artifacts
|
|
81
81
|
path: publish
|
|
@@ -14,7 +14,7 @@ jobs:
|
|
|
14
14
|
submodules: 'recursive'
|
|
15
15
|
fetch-depth: 0
|
|
16
16
|
|
|
17
|
-
- uses: actions/setup-dotnet@
|
|
17
|
+
- uses: actions/setup-dotnet@v4
|
|
18
18
|
|
|
19
19
|
- run: dotnet build src/SPV3.csproj -c Release -p:ContinuousIntegrationBuild=true
|
|
20
20
|
# ContinuousIntegrationBuild comes from dotnet/sourcelink. Make sure Deterministic is also true!
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@halospv3/hce.shared-config",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.6",
|
|
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",
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"watch": "packemon watch"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@commitlint/cli": "^18.
|
|
45
|
-
"@commitlint/config-conventional": "^18.
|
|
44
|
+
"@commitlint/cli": "^18.4.3",
|
|
45
|
+
"@commitlint/config-conventional": "^18.4.3",
|
|
46
46
|
"@semantic-release/changelog": "^6.0.3",
|
|
47
|
-
"@semantic-release/commit-analyzer": "^11.
|
|
47
|
+
"@semantic-release/commit-analyzer": "^11.1.0",
|
|
48
48
|
"@semantic-release/git": "^10.0.1",
|
|
49
|
-
"@semantic-release/github": "^9.
|
|
49
|
+
"@semantic-release/github": "^9.2.6",
|
|
50
50
|
"@semantic-release/npm": "^11.0.0",
|
|
51
|
-
"@semantic-release/release-notes-generator": "^12.
|
|
51
|
+
"@semantic-release/release-notes-generator": "^12.1.0",
|
|
52
52
|
"conventional-changelog-conventionalcommits": "^7.0.2",
|
|
53
53
|
"husky": "^8.0.3",
|
|
54
54
|
"js-yaml": "^4.1.0",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@halospv3/hce.shared-config": "./",
|
|
61
|
-
"@tsconfig/node-lts": "^
|
|
61
|
+
"@tsconfig/node-lts": "^20.0.0",
|
|
62
62
|
"@types/debug": "^4.1.8",
|
|
63
63
|
"@types/js-yaml": "^4.0.8",
|
|
64
64
|
"@types/node": "^20.5.1",
|
package/cjs/index-wrapper.mjs
DELETED
package/cjs/index.cjs
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const node_fs = require('node:fs');
|
|
4
|
-
const path = require('node:path');
|
|
5
|
-
const node_url = require('node:url');
|
|
6
|
-
const jsYaml = require('js-yaml');
|
|
7
|
-
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
8
|
-
const _interopDefault = e => e && e.__esModule ? e : {
|
|
9
|
-
default: e
|
|
10
|
-
};
|
|
11
|
-
const path__default = /*#__PURE__*/_interopDefault(path);
|
|
12
|
-
const jsYaml__default = /*#__PURE__*/_interopDefault(jsYaml);
|
|
13
|
-
|
|
14
|
-
/// ../static/.releaserc.yml
|
|
15
|
-
|
|
16
|
-
function findStaticConfig() {
|
|
17
|
-
const glob = "static/.releaserc.yml";
|
|
18
|
-
let dirPath = node_url.fileURLToPath(path__default.default.dirname(typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href));
|
|
19
|
-
let combinedPath = path__default.default.join(dirPath, glob);
|
|
20
|
-
while (!node_fs.existsSync(combinedPath)) {
|
|
21
|
-
/* file:// + dirname behavior on Windows. 'root' is empty when 'file://' is present.
|
|
22
|
-
* file:///C:/Repos
|
|
23
|
-
* file:///C:
|
|
24
|
-
* file://
|
|
25
|
-
* .
|
|
26
|
-
*/
|
|
27
|
-
// DEBUG.log(dirPath);
|
|
28
|
-
// DEBUG.log(combinedPath.href);
|
|
29
|
-
/** Throw if we reached root. */
|
|
30
|
-
if (path__default.default.dirname(dirPath) === "") throw new Error(`Failed to get full path for HCE.Shared's shared configuration. HCE.Shared recursively searched parent directories for '${glob}' starting from '${path__default.default.dirname(typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)}'`);
|
|
31
|
-
dirPath = path__default.default.dirname(dirPath);
|
|
32
|
-
combinedPath = path__default.default.join(dirPath, glob);
|
|
33
|
-
}
|
|
34
|
-
return combinedPath;
|
|
35
|
-
}
|
|
36
|
-
const options = jsYaml__default.default.load(node_fs.readFileSync(findStaticConfig(), {
|
|
37
|
-
encoding: "utf8"
|
|
38
|
-
}));
|
|
39
|
-
module.exports = options;
|
|
40
|
-
//# sourceMappingURL=index.cjs.map
|
package/cjs/index.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../src/index.ts"],"sourcesContent":null,"names":["fileURLToPath","path","existsSync","jsYaml","readFileSync"],"mappings":";;;;;;;;;;;;;AAIA;AACA;AACA,SAAS,gBAAgB,GAAG;AAC5B,EAAE,MAAM,IAAI,GAAG,uBAAuB,CAAC;AACvC,EAAE,IAAI,OAAO,GAAGA,sBAAa,CAACC,qBAAI,CAAC,OAAO,CAAC,8LAAe,CAAC,CAAC,CAAC;AAC7D,EAAE,IAAI,YAAY,GAAGA,qBAAI,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AAC9C,EAAE,OAAO,CAACC,kBAAU,CAAC,YAAY,CAAC,EAAE;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,IAAID,qBAAI,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,MAAM,IAAI,KAAK,CAAC,CAAC,uHAAuH,EAAE,IAAI,CAAC,iBAAiB,EAAEA,qBAAI,CAAC,OAAO,CAAC,8LAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1O,IAAI,OAAO,GAAGA,qBAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;AACpC,IAAI,YAAY,GAAGA,qBAAI,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AAC5C,GAAG;AACH,EAAE,OAAO,YAAY,CAAC;AACtB,CAAC;AACI,MAAC,OAAO,GAAGE,uBAAM,CAAC,IAAI,CAACC,oBAAY,CAAC,gBAAgB,EAAE,EAAE;AAC7D,EAAE,QAAQ,EAAE,MAAM;AAClB,CAAC,CAAC;;;;"}
|
package/cjs/index.d.ts
DELETED
package/cjs/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AA+BhD,QAAA,MAAM,OAAO,SAAiF,CAAC;AAE/F;;;GAGG;AACH,eAAe,OAAO,CAAC"}
|
package/src/index.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { existsSync, readFileSync } from "node:fs";
|
|
2
|
-
import path from "node:path";
|
|
3
|
-
import { fileURLToPath } from "node:url";
|
|
4
|
-
import jsYaml from "js-yaml";
|
|
5
|
-
import type { Options } from "semantic-release";
|
|
6
|
-
|
|
7
|
-
/// ../static/.releaserc.yml
|
|
8
|
-
|
|
9
|
-
function findStaticConfig(): string {
|
|
10
|
-
const glob = "static/.releaserc.yml";
|
|
11
|
-
let dirPath = fileURLToPath(path.dirname(import.meta.url));
|
|
12
|
-
let combinedPath = path.join(dirPath, glob);
|
|
13
|
-
|
|
14
|
-
while (!existsSync(combinedPath)) {
|
|
15
|
-
/* file:// + dirname behavior on Windows. 'root' is empty when 'file://' is present.
|
|
16
|
-
* file:///C:/Repos
|
|
17
|
-
* file:///C:
|
|
18
|
-
* file://
|
|
19
|
-
* .
|
|
20
|
-
*/
|
|
21
|
-
// DEBUG.log(dirPath);
|
|
22
|
-
// DEBUG.log(combinedPath.href);
|
|
23
|
-
/** Throw if we reached root. */
|
|
24
|
-
if (path.dirname(dirPath) === "")
|
|
25
|
-
throw new Error(
|
|
26
|
-
`Failed to get full path for HCE.Shared's shared configuration. HCE.Shared recursively searched parent directories for '${glob}' starting from '${path.dirname(
|
|
27
|
-
import.meta.url,
|
|
28
|
-
)}'`,
|
|
29
|
-
);
|
|
30
|
-
dirPath = path.dirname(dirPath);
|
|
31
|
-
combinedPath = path.join(dirPath, glob);
|
|
32
|
-
}
|
|
33
|
-
return combinedPath;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
const options = jsYaml.load(readFileSync(findStaticConfig(), { encoding: "utf8" })) as Options;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Runs HCE.Shared and returns a semantic-release "shareable configuration" object.
|
|
40
|
-
* @type {Options}.
|
|
41
|
-
*/
|
|
42
|
-
export default options;
|
package/static/.releaserc.yml
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# footer contains links e.g. 3rd-party plugins, little-known features
|
|
2
|
-
|
|
3
|
-
### global vars
|
|
4
|
-
# https://semantic-release.gitbook.io/semantic-release/v/beta/usage/plugins#plugin-options-configuration
|
|
5
|
-
preset: conventionalcommits
|
|
6
|
-
|
|
7
|
-
### main options
|
|
8
|
-
|
|
9
|
-
branches: # https://semantic-release.gitbook.io/semantic-release/v/beta/usage/configuration#branches
|
|
10
|
-
- main
|
|
11
|
-
- name: develop
|
|
12
|
-
channel: develop
|
|
13
|
-
prerelease: true
|
|
14
|
-
plugins: # https://semantic-release.gitbook.io/semantic-release/v/beta/usage/configuration#plugins
|
|
15
|
-
- "@semantic-release/commit-analyzer"
|
|
16
|
-
- "semantic-release-export-data"
|
|
17
|
-
- "@semantic-release/release-notes-generator"
|
|
18
|
-
- "@semantic-release/changelog"
|
|
19
|
-
- - "@semantic-release/git"
|
|
20
|
-
- assets:
|
|
21
|
-
- README.md
|
|
22
|
-
- CHANGELOG.md
|
|
23
|
-
- - "@semantic-release/github"
|
|
24
|
-
- assets:
|
|
25
|
-
- path: ./publish/*
|
|
26
|
-
## (OPTIONAL) update Version strings
|
|
27
|
-
# https://github.com/jpoehnelt/semantic-release-replace-plugin
|
|
28
|
-
# 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
|