@innominatum/agentforge-cli 1.1.23 → 1.1.24
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.
|
@@ -11,7 +11,7 @@ jobs:
|
|
|
11
11
|
env:
|
|
12
12
|
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
|
|
13
13
|
permissions:
|
|
14
|
-
contents:
|
|
14
|
+
contents: write
|
|
15
15
|
id-token: write # Required for NPM Trusted Publishing (OIDC)
|
|
16
16
|
steps:
|
|
17
17
|
- name: Checkout code
|
|
@@ -29,5 +29,19 @@ jobs:
|
|
|
29
29
|
- name: Build TypeScript code
|
|
30
30
|
run: npm run build
|
|
31
31
|
|
|
32
|
+
- name: Auto-bump version if already published
|
|
33
|
+
run: |
|
|
34
|
+
git config --global user.name 'github-actions[bot]'
|
|
35
|
+
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
|
|
36
|
+
PUBLISHED_VERSION=$(npm view @innominatum/agentforge-cli version 2>/dev/null || echo "0.0.0")
|
|
37
|
+
CURRENT_VERSION=$(node -p "require('./package.json').version")
|
|
38
|
+
if [ "$PUBLISHED_VERSION" = "$CURRENT_VERSION" ]; then
|
|
39
|
+
echo "Version $CURRENT_VERSION is already published. Bumping patch version..."
|
|
40
|
+
npm version patch -m "chore: auto-bump version to %s [skip ci]"
|
|
41
|
+
git push --follow-tags
|
|
42
|
+
else
|
|
43
|
+
echo "Version $CURRENT_VERSION is not published yet. Proceeding with publish..."
|
|
44
|
+
fi
|
|
45
|
+
|
|
32
46
|
- name: Publish to NPM
|
|
33
47
|
run: npm publish --access public --provenance
|
package/package.json
CHANGED