contensis-cli 1.6.1-beta.23 → 1.6.1-beta.24
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/dist/index.js +13 -2
- package/dist/index.js.map +2 -2
- package/dist/shell.js +13 -2
- package/dist/shell.js.map +2 -2
- package/package.json +1 -1
- package/src/commands/push.ts +12 -1
- package/src/version.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contensis-cli",
|
|
3
|
-
"version": "1.6.1-beta.
|
|
3
|
+
"version": "1.6.1-beta.24",
|
|
4
4
|
"description": "A fully featured Contensis command line interface with a shell UI provides simple and intuitive ways to manage or profile your content in any NodeJS terminal.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
package/src/commands/push.ts
CHANGED
|
@@ -212,6 +212,13 @@ Example call:
|
|
|
212
212
|
},
|
|
213
213
|
projectId: () => cli.env.currentProject || '',
|
|
214
214
|
source: {
|
|
215
|
+
// Provenance resolution order per field:
|
|
216
|
+
// 1. explicit cli flag (camelCase key from commander opts)
|
|
217
|
+
// 2. CONTENSIS_* env var - a safe channel for CI actions to supply
|
|
218
|
+
// values without embedding them in the command string (where mapped)
|
|
219
|
+
// 3. generic CI variables the runner exports
|
|
220
|
+
// The mapper skips empty/undefined candidates and uses the first
|
|
221
|
+
// non-empty value, so unset optional vars never mask a fallback.
|
|
215
222
|
provider: {
|
|
216
223
|
$path: ['provider'],
|
|
217
224
|
$return: (provider: string, { GITHUB_ACTIONS, GITLAB_CI }) => {
|
|
@@ -234,7 +241,11 @@ Example call:
|
|
|
234
241
|
commit: {
|
|
235
242
|
id: ['commitId', 'CI_COMMIT_SHORT_SHA', 'GITHUB_SHA'],
|
|
236
243
|
message: {
|
|
237
|
-
$path: [
|
|
244
|
+
$path: [
|
|
245
|
+
'commitMessage',
|
|
246
|
+
'CONTENSIS_COMMIT_MESSAGE',
|
|
247
|
+
'CI_COMMIT_MESSAGE',
|
|
248
|
+
], // ${{ github.event.head_commit.message }}
|
|
238
249
|
$formatting: (msg?: string) =>
|
|
239
250
|
msg?.replace(/\\n/g, ' ').replace(/\\n/g, ' ').trim(),
|
|
240
251
|
},
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const LIB_VERSION = "1.6.1-beta.
|
|
1
|
+
export const LIB_VERSION = "1.6.1-beta.24";
|