scaffold-doc-cli 1.0.3 → 1.0.4
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/.github/workflows/ai-doc-sync.yml +3 -2
- package/index.js +3 -2
- package/package.json +1 -1
|
@@ -21,10 +21,10 @@ jobs:
|
|
|
21
21
|
- name: Setup Node.js
|
|
22
22
|
uses: actions/setup-node@v3
|
|
23
23
|
with:
|
|
24
|
-
node-version: '
|
|
24
|
+
node-version: '22'
|
|
25
25
|
|
|
26
26
|
- name: Install Dependencies
|
|
27
|
-
run: npm install @google/genai
|
|
27
|
+
run: npm install @google/genai --no-save
|
|
28
28
|
|
|
29
29
|
- name: Run AI Doc Sync
|
|
30
30
|
env:
|
|
@@ -44,3 +44,4 @@ jobs:
|
|
|
44
44
|
branch: ai-docs/${{ github.ref_name }}
|
|
45
45
|
base: ${{ github.head_ref || github.ref_name }}
|
|
46
46
|
delete-branch: true
|
|
47
|
+
add-paths: .docs
|
package/index.js
CHANGED
|
@@ -178,10 +178,10 @@ jobs:
|
|
|
178
178
|
- name: Setup Node.js
|
|
179
179
|
uses: actions/setup-node@v3
|
|
180
180
|
with:
|
|
181
|
-
node-version: '
|
|
181
|
+
node-version: '22'
|
|
182
182
|
|
|
183
183
|
- name: Install Dependencies
|
|
184
|
-
run: npm install @google/genai
|
|
184
|
+
run: npm install @google/genai --no-save
|
|
185
185
|
|
|
186
186
|
- name: Run AI Doc Sync
|
|
187
187
|
env:
|
|
@@ -201,6 +201,7 @@ jobs:
|
|
|
201
201
|
branch: ai-docs/\${{ github.ref_name }}
|
|
202
202
|
base: \${{ github.head_ref || github.ref_name }}
|
|
203
203
|
delete-branch: true
|
|
204
|
+
add-paths: .docs
|
|
204
205
|
`;
|
|
205
206
|
await fs.writeFile(path.join(workflowDir, 'ai-doc-sync.yml'), workflowContent);
|
|
206
207
|
console.log(chalk.green('✔ .github/workflows/ai-doc-sync.yml created'));
|