@cocreate/cli 1.56.5 → 1.59.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.
@@ -9,33 +9,36 @@ jobs:
9
9
  about:
10
10
  runs-on: ubuntu-latest
11
11
  steps:
12
- - name: Checkout
13
- uses: actions/checkout@v3
14
- - name: Setup Node.js
15
- uses: actions/setup-node@v3
16
- with:
17
- node-version: 16
18
- - name: Jaid/action-sync-node-meta
19
- uses: jaid/action-sync-node-meta@v1.4.0
20
- with:
21
- direction: overwrite-github
22
- githubToken: "${{ secrets.GITHUB }}"
12
+ - name: Checkout repository
13
+ uses: actions/checkout@v7
14
+
15
+ - name: Sync package.json description to GitHub About
16
+ env:
17
+ GITHUB_TOKEN: ${{ secrets.GITHUB }}
18
+ run: |
19
+ DESC=$(jq -r '.description // empty' package.json)
20
+ if [ -n "$DESC" ]; then
21
+ echo "Updating repository description to: $DESC"
22
+ gh api -X PATCH repos/${{ github.repository }} -f description="$DESC"
23
+ else
24
+ echo "No description found in package.json."
25
+ fi
23
26
 
24
27
  release:
25
28
  runs-on: ubuntu-latest
26
29
  steps:
27
- - name: Checkout
28
- uses: actions/checkout@v4
30
+ - name: Checkout repository
31
+ uses: actions/checkout@v7
29
32
  with:
30
- fetch-depth: 0 # Required so semantic-release can trace git tags/history
33
+ fetch-depth: 0
34
+ token: ${{ secrets.GITHUB }} # Authenticates git CLI for tag/commit pushes
31
35
 
32
36
  - name: Setup Node.js
33
- uses: actions/setup-node@v4
37
+ uses: actions/setup-node@v7
34
38
  with:
35
- node-version: 22
39
+ node-version: '24'
36
40
 
37
41
  - name: Install Semantic Release & Plugins
38
- # Installs semantic-release and its plugins on the runner
39
42
  run: |
40
43
  npm install -g semantic-release \
41
44
  @semantic-release/changelog \
@@ -43,12 +46,11 @@ jobs:
43
46
  @semantic-release/github \
44
47
  @semantic-release/git
45
48
 
46
- - name: Run Semantic Release (Native)
49
+ - name: Run Semantic Release
47
50
  id: semantic
48
- # This will automatically pick up your export default config file in the repository root
49
51
  run: npx semantic-release
50
52
  env:
51
- GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
53
+ GITHUB_TOKEN: "${{ secrets.GITHUB }}"
52
54
  NPM_TOKEN: "${{ secrets.NPM_TOKEN }}"
53
55
 
54
56
  outputs:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/cli",
3
- "version": "1.56.5",
3
+ "version": "1.59.0",
4
4
  "description": "Polyrepo management bash CLI tool. Run all git commands and yarn commands on multiple repositories. Also includes a few custom macros for cloning, installing, etc.",
5
5
  "keywords": [
6
6
  "cli",
@@ -48,9 +48,9 @@
48
48
  "coc": "src/coc.js"
49
49
  },
50
50
  "dependencies": {
51
- "@cocreate/acme": "^1.4.0",
52
- "@cocreate/config": "^1.14.0",
53
- "@cocreate/file": "^1.22.0",
51
+ "@cocreate/acme": "^1.6.0",
52
+ "@cocreate/config": "^1.16.0",
53
+ "@cocreate/file": "^1.23.0",
54
54
  "@google/generative-ai": "0.24.1"
55
55
  },
56
56
  "allowScripts": {
@@ -1,4 +1,4 @@
1
- const config = require('@cocreate/config')
1
+ const Config = require('@cocreate/config')
2
2
 
3
3
  module.exports = async function (repos, args) {
4
4
  let object = {}
@@ -10,6 +10,6 @@ module.exports = async function (repos, args) {
10
10
  object[arg[0]] = { value: arg[1] }
11
11
  }
12
12
 
13
- await config.request(object)
13
+ await Config.prompt(object)
14
14
 
15
15
  }
@@ -49,7 +49,7 @@ const MODEL_NAME = "gemini-2.5-flash-lite";
49
49
  // Exported function to generate translation object for HTML source and languages
50
50
  async function getApiKey(options) {
51
51
  if (options.apiKey) return options.apiKey;
52
- const config = await Config.request({
52
+ const config = await Config.prompt({
53
53
  GoogleGenerativeAIApiKey: {
54
54
  prompt: "Enter your Google Generative AI API key: "
55
55
  }
@@ -1,6 +1,6 @@
1
1
  const fs = require("fs");
2
2
  const path = require("path");
3
- const spawn = require("../../spawn");
3
+ const spawn = require("../spawn");
4
4
 
5
5
  const cwdPath = path.resolve(process.cwd());
6
6
  let cwdNodeModulesPath = path.resolve(cwdPath, "node_modules");