From 8bb5722dbfca7325ba6772dc30db7e7cf4a88841 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20H=C3=A4rtl?= Date: Mon, 2 Sep 2024 16:16:39 +0200 Subject: [PATCH] Fix build docs command --- .github/workflows/Publish_to_NPM.yml | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Publish_to_NPM.yml b/.github/workflows/Publish_to_NPM.yml index 0cff3277..012ce20f 100644 --- a/.github/workflows/Publish_to_NPM.yml +++ b/.github/workflows/Publish_to_NPM.yml @@ -40,10 +40,10 @@ jobs: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Bump version in git - if: ${{ github.event.action }} == 'released' run: | git add package.json git add package-lock.json + git add API.md git commit -m "Bump version to ${{ github.event.release.tag_name }}" git tag -f ${{ github.event.release.tag_name }} git push diff --git a/package.json b/package.json index f30699d8..c3c8808d 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "build": "rollup -c", "watch": "rollup -cw", "prepublishOnly": "npm run build && npm run build_docs", - "build_docs": "jsdoc2md source/gltf-sample-render.js source/GltfView/gltf_view.js source/GltfState/gltf_state.js source/ResourceLoader/resource_loader.js source/gltf/user_camera.js > API.md", + "build_docs": "jsdoc2md source/gltf-sample-renderer.js source/GltfView/gltf_view.js source/GltfState/gltf_state.js source/ResourceLoader/resource_loader.js source/gltf/user_camera.js > API.md", "test": "echo \"Error: no test specified\" && exit 1", "lint": "eslint source/**/*.js", "lint:fix": "eslint --fix source/**/*.js"