Skip to content

Commit 291b997

Browse files
codeblechclaude
andcommitted
fix: update docs deployment to use current package version
- GitHub Pages now deploys from ./docs/jsjiit/{version} instead of ./docs/jsjiit - Extracts version dynamically from package.json - Fixes docs URL to show current version (0.0.22) instead of outdated version (0.0.20) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent d8c0620 commit 291b997

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/jsdoc-build.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ jobs:
1111
steps:
1212
- name: Checkout repository
1313
uses: actions/checkout@v2
14+
- name: Get package version
15+
id: get_version
16+
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
1417
- name: Build docs
1518
uses: andstor/jsdoc-action@v1
1619
with:
@@ -20,5 +23,5 @@ jobs:
2023
uses: peaceiris/actions-gh-pages@v3
2124
with:
2225
github_token: ${{ secrets.GITHUB_TOKEN }}
23-
publish_dir: ./docs/jsjiit
26+
publish_dir: ./docs/jsjiit/${{ steps.get_version.outputs.version }}
2427

0 commit comments

Comments
 (0)