@logickernel/agileflow 0.21.0 → 0.22.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.
- package/README.md +3 -1
- package/docs/guides/github-actions.md +3 -1
- package/package.json +1 -1
- package/src/utils.js +1 -1
package/README.md
CHANGED
|
@@ -77,10 +77,12 @@ jobs:
|
|
|
77
77
|
node-version: '20'
|
|
78
78
|
|
|
79
79
|
- name: Create version tag
|
|
80
|
+
env:
|
|
81
|
+
GITHUB_TOKEN: ${{ github.token }}
|
|
80
82
|
run: npx @logickernel/agileflow github
|
|
81
83
|
```
|
|
82
84
|
|
|
83
|
-
|
|
85
|
+
Uses the built-in `GITHUB_TOKEN` — no custom tokens or secrets setup needed. Just grant `contents: write` permission and pass the token via `env`. You can also use a [Personal Access Token](./docs/guides/github-actions.md) if your organization restricts `GITHUB_TOKEN` permissions.
|
|
84
86
|
|
|
85
87
|
### GitLab CI
|
|
86
88
|
|
|
@@ -30,10 +30,12 @@ jobs:
|
|
|
30
30
|
node-version: '20'
|
|
31
31
|
|
|
32
32
|
- name: Create version tag
|
|
33
|
+
env:
|
|
34
|
+
GITHUB_TOKEN: ${{ github.token }}
|
|
33
35
|
run: npx @logickernel/agileflow github
|
|
34
36
|
```
|
|
35
37
|
|
|
36
|
-
That's it.
|
|
38
|
+
That's it. The `permissions: contents: write` block grants the token permission to create tags, and the `env` block makes it available to AgileFlow. No custom tokens or secrets setup needed.
|
|
37
39
|
|
|
38
40
|
`fetch-depth: 0` is required — without it, AgileFlow can only see a shallow clone and cannot find the last version tag.
|
|
39
41
|
|
package/package.json
CHANGED
package/src/utils.js
CHANGED
|
@@ -11,7 +11,7 @@ const { execSync } = require('child_process');
|
|
|
11
11
|
*/
|
|
12
12
|
function runWithOutput(command, options = {}) {
|
|
13
13
|
try {
|
|
14
|
-
return execSync(command, { stdio: 'pipe', encoding: 'utf8', ...options });
|
|
14
|
+
return execSync(command, { stdio: 'pipe', encoding: 'utf8', maxBuffer: 50 * 1024 * 1024, ...options });
|
|
15
15
|
} catch (error) {
|
|
16
16
|
const captured = {
|
|
17
17
|
stdout: error?.stdout ? String(error.stdout) : '',
|