@docupace/pipeline 1.0.39-newrelease.18 → 1.0.39-newrelease.19

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docupace/pipeline",
3
- "version": "1.0.39-newrelease.18",
3
+ "version": "1.0.39-newrelease.19",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -61,15 +61,7 @@ export async function uploadToCanny(releaseNote, labelIDs) {
61
61
  labelIDs,
62
62
  });
63
63
 
64
- const partialBody = {
65
- title: title,
66
- details: content,
67
- type: entryType,
68
- published: false, // Keep as draft initially
69
- labelIDs,
70
- };
71
-
72
- console.log("POSTING: ", partialBody)
64
+ console.log("POSTING: ", body)
73
65
 
74
66
  // Create a new changelog entry in Canny
75
67
  const createResponse = await fetch(
@@ -1,10 +1,20 @@
1
1
  import { setGitInfo } from '../next/util.js';
2
2
  import { $ } from 'zx';
3
- import fs from 'fs';
3
+ import fs, {readFileSync} from 'fs';
4
4
  import { updateComponentVersion } from '../next/jira.js';
5
5
  import { findJiraTicketId } from './util.js';
6
6
  import { revertBaseBranch, updateBaseBranch } from './changeset-config.js';
7
7
  import semver from 'semver';
8
+ import {dirname, join} from "path";
9
+ import {fileURLToPath} from "url";
10
+
11
+
12
+ const getPackageVersion = () => {
13
+ const __dirname = dirname(fileURLToPath(import.meta.url));
14
+ const packageJsonPath = join(__dirname, '../../package.json');
15
+ const packageJson = JSON.parse(readFileSync(packageJsonPath, 'utf8'));
16
+ return packageJson.version;
17
+ }
8
18
 
9
19
  const changeSetPackage = `{
10
20
  "name": "changeset-package",
@@ -19,7 +29,7 @@ const changeSetPackage = `{
19
29
  "dependencies": {},
20
30
  "devDependencies": {
21
31
  "@changesets/cli": "^2.27.10",
22
- "@docupace/pipeline": "1.0.39-newrelease.13"
32
+ "@docupace/pipeline": "${getPackageVersion()}"
23
33
  }
24
34
  }
25
35
  `;