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"