create-preview-workflow 1.1.9 → 2.0.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.
Files changed (2) hide show
  1. package/index.js +4 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -51,7 +51,8 @@ function getGitHubInfo() {
51
51
  {
52
52
  type: "text",
53
53
  name: "org",
54
- message: "Enter the organization:",
54
+ message:
55
+ "Enter the email address (registered at Preview) or the Organization name:",
55
56
  },
56
57
  ]);
57
58
 
@@ -69,7 +70,7 @@ function getGitHubInfo() {
69
70
  .filter((file) => fs.statSync(path.join(sourceDir, file)).isFile());
70
71
  }
71
72
 
72
- const baseUrl = `http://preview.neurasense.io:30010/${username}@${repo}`;
73
+ const baseUrl = `http://preview.neurasense.io/${username}@${repo}`;
73
74
  const urls = fileNames.map((file) => `${baseUrl}/${file}`);
74
75
 
75
76
  if (urls.length > 0) {
@@ -117,7 +118,7 @@ jobs:
117
118
 
118
119
  - name: Call Preview Webhook
119
120
  run: |
120
- curl -X POST http://webhook.neurasense.io:30010/deploy \\
121
+ curl -X POST http://preview.neurasense.io/deploy \\
121
122
  -H "Content-Type: application/json" \\
122
123
  -d "\$(jq -n \\
123
124
  --arg repo "\${{ github.repository }}" \\
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-preview-workflow",
3
- "version": "1.1.9",
3
+ "version": "2.0.0",
4
4
  "bin": {
5
5
  "create-preview-workflow": "index.js"
6
6
  },