@docupace/pipeline 1.0.0-alpha.24 → 1.0.0-alpha.26

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.0-alpha.24",
3
+ "version": "1.0.0-alpha.26",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -12,9 +12,9 @@ const DIR = path.resolve(process.cwd());
12
12
 
13
13
  // Helper function to set Git info
14
14
  async function setGitInfo() {
15
- // await $`git config --global user.email "gitops@docupace.com"`;
16
- // await $`git config --global user.name "Gitops"`;
17
- // await $`git remote set-url origin https://x-token-auth:${process.env.BITBUCKET_TOKEN}@bitbucket.org/dp-cloud/docupace-graphql-server.git`;
15
+ await $`git config --global user.email "gitops@docupace.com"`;
16
+ await $`git config --global user.name "Gitops"`;
17
+ await $`git remote set-url origin https://x-token-auth:${process.env.BITBUCKET_TOKEN}@bitbucket.org/dp-cloud/docupace-graphql-server.git`;
18
18
  }
19
19
 
20
20
  const changeSetPackage = `{
@@ -34,12 +34,26 @@ const changeSetPackage = `{
34
34
  }
35
35
  `
36
36
 
37
+ const nodeDocker = `
38
+ # Use a Node.js base image
39
+ FROM node:18
40
+
41
+ # Set the working directory inside the container
42
+ WORKDIR /app
43
+
44
+ # Install pnpm globally
45
+ RUN npm install -g pnpm
46
+
47
+ # Default command (can be overridden in the docker run command)
48
+ CMD ["node"]
49
+ `
50
+
37
51
  async function versionCommand() {
38
52
  console.log('📦 Running Changeset versioning...');
39
53
  await setGitInfo();
40
- await $`nvm use 18`
41
54
  await $`mv package.json package.json.bak`
42
55
  await $`mv pnpm-lock.yaml pnpm-lock.yaml.bak`
56
+ await fs.promises.writeFile('Dockerfile.node', nodeDocker);
43
57
  await fs.promises.writeFile('package.json', changeSetPackage);
44
58
  await $`pnpm install`;
45
59
  await $`rm package.json pnpm-lock.yaml`