|
62 | 62 | env: |
63 | 63 | NODE_OPTIONS: --max-old-space-size=6144 |
64 | 64 |
|
65 | | - - name: Generate database manifest |
66 | | - run: | |
67 | | - VERSION=$(node -p "require('./package.json').version") |
68 | | - echo "📋 Generating manifest for version $VERSION" |
69 | | - npm run db:manifest -- --version "$VERSION" --type full --changelog "Full documentation index update for v$VERSION" |
70 | | -
|
71 | | - - name: Commit database to repository |
72 | | - run: | |
73 | | - VERSION=$(node -p "require('./package.json').version") |
74 | | - echo "📦 Committing database v$VERSION to repository via Git LFS" |
75 | | -
|
76 | | - # Ensure data directory exists |
77 | | - mkdir -p data |
78 | | -
|
79 | | - # Add the database and manifest files |
80 | | - git add data/mcmodding-docs.db data/manifest.json |
81 | | -
|
82 | | - # Check if there are changes to commit |
83 | | - if git diff --staged --quiet; then |
84 | | - echo "No changes to database files" |
85 | | - else |
86 | | - git commit -m "chore(db): update documentation database to v$VERSION |
87 | | -
|
88 | | - 🤖 Generated with [Claude Code](https://claude.com/claude-code) |
89 | | -
|
90 | | - Co-Authored-By: github-actions[bot] <github-actions[bot]@users.noreply.github.com>" |
91 | | -
|
92 | | - git push origin prod |
93 | | - echo "✅ Database committed and pushed" |
94 | | - fi |
95 | | -
|
96 | 65 | - name: Publish to npm |
97 | 66 | if: ${{ github.event.inputs.skip_npm != 'true' }} |
98 | 67 | run: npm publish --provenance --access public --ignore-scripts |
|
102 | 71 | VERSION=$(node -p "require('./package.json').version") |
103 | 72 | mkdir -p release-artifacts |
104 | 73 | cp data/mcmodding-docs.db release-artifacts/ |
105 | | - cp data/manifest.json release-artifacts/db-manifest.json |
| 74 | + cp data/db-manifest.json release-artifacts/db-manifest.json |
106 | 75 | echo "📦 Release artifacts:" |
107 | 76 | ls -lh release-artifacts/ |
108 | 77 |
|
@@ -186,7 +155,7 @@ jobs: |
186 | 155 | - Updated `CHANGELOG.md` |
187 | 156 | - Updated `.release-please-manifest.json` |
188 | 157 | - Updated `data/mcmodding-docs.db` (via Git LFS) |
189 | | - - Updated `data/manifest.json` |
| 158 | + - Updated `data/db-manifest.json` |
190 | 159 |
|
191 | 160 | **Auto-merge recommended** to keep branches in sync. |
192 | 161 | branch: sync/prod-to-dev |
|
0 commit comments