gm-codex 2.0.16 → 2.0.21

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,8 +9,6 @@ on:
9
9
  jobs:
10
10
  publish:
11
11
  runs-on: ubuntu-latest
12
- permissions:
13
- contents: write
14
12
  steps:
15
13
  - uses: actions/checkout@v4
16
14
 
@@ -19,32 +17,21 @@ jobs:
19
17
  node-version: '22'
20
18
  registry-url: 'https://registry.npmjs.org'
21
19
 
22
- - name: Validate package.json
23
- run: |
24
- if [ ! -f package.json ]; then
25
- echo "❌ package.json not found"
26
- exit 1
27
- fi
28
- VERSION=$(jq -r '.version' package.json)
29
- PACKAGE=$(jq -r '.name' package.json)
30
- if [ -z "$VERSION" ] || [ -z "$PACKAGE" ]; then
31
- echo "❌ Invalid package.json: missing version or name"
32
- exit 1
33
- fi
34
- echo "Package: $PACKAGE"
35
- echo "Version: $VERSION"
36
-
37
- - name: Auto-bump and publish
20
+ - name: Publish to npm
38
21
  run: |
39
22
  PACKAGE=$(jq -r '.name' package.json)
40
23
  VERSION=$(jq -r '.version' package.json)
41
- LATEST=$(npm view "$PACKAGE" version 2>/dev/null || echo "0.0.0")
42
- if [ "$LATEST" = "$VERSION" ]; then
43
- IFS='.' read -r MAJOR MINOR PATCH <<< "$LATEST"
44
- NEW_VERSION="$MAJOR.$MINOR.$((PATCH + 1))"
45
- echo "Auto-bumping $PACKAGE from $VERSION to $NEW_VERSION"
46
- jq --arg newver "$NEW_VERSION" '.version = $newver' package.json > package.tmp.json && mv package.tmp.json package.json
24
+ echo "Package: $PACKAGE@$VERSION"
25
+
26
+ # Skip if this exact version is already on npm
27
+ PUBLISHED=$(npm view "$PACKAGE@$VERSION" version 2>/dev/null || echo "")
28
+ if [ "$PUBLISHED" = "$VERSION" ]; then
29
+ echo " $PACKAGE@$VERSION already published - skipping"
30
+ exit 0
47
31
  fi
48
- npm publish
32
+
33
+ echo "Publishing $PACKAGE@$VERSION..."
34
+ npm publish --access public
35
+ echo "✅ Published $PACKAGE@$VERSION"
49
36
  env:
50
37
  NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-codex",
3
- "version": "2.0.16",
3
+ "version": "2.0.21",
4
4
  "description": "Advanced Claude Code plugin with WFGY integration, MCP tools, and automated hooks",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",
package/plugin.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm",
3
- "version": "2.0.16",
3
+ "version": "2.0.21",
4
4
  "description": "Advanced Claude Code plugin with WFGY integration, MCP tools, and automated hooks",
5
5
  "author": {
6
6
  "name": "AnEntrypoint",