create-preview-workflow 1.0.0 → 1.0.2

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 +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -10,7 +10,7 @@ const prompts = require("prompts");
10
10
  type: "text",
11
11
  name: "sourcePath",
12
12
  message:
13
- "Enter the source file or directory to sync (e.g., tests.nb.html or dist/):",
13
+ "Enter the source directory to sync (e.g., 2_scripts) without leading slash:",
14
14
  },
15
15
  {
16
16
  type: "text",
@@ -45,7 +45,7 @@ jobs:
45
45
  git clone https://${response.token}@github.com/ssm123ssm/preview.git
46
46
  rm -rf preview/public/protected/\$DIR
47
47
  mkdir -p preview/public/protected/\$DIR
48
- cp -r ${response.sourcePath} preview/public/protected/\$DIR/
48
+ cp -r ${response.sourcePath}/. preview/public/protected/\$DIR/
49
49
  cd preview
50
50
  git config user.name "GitHub Actions"
51
51
  git config user.email "actions@github.com"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-preview-workflow",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "bin": {
5
5
  "create-preview-workflow": "index.js"
6
6
  },