Skip to content

Commit

Permalink
Do not automatically push after npm version
Browse files Browse the repository at this point in the history
  • Loading branch information
UX3D-haertl committed Sep 2, 2024
1 parent d8322e8 commit 60551fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/Publish_to_NPM.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ jobs:
run: npm run build

- run: npm version ${{ github.event.release.tag_name }} --git-tag-version=false
if: ${{ github.event.action }} == 'prereleased'

- name: Publish to NPM
- name: Test publishing to NPM
if: ${{ github.event.action }} == 'prereleased'
run: npm publish --dry-run
env:
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
"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",
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "eslint source/**/*.js",
"lint:fix": "eslint --fix source/**/*.js",
"postversion": "git push && git push --tags"
"lint:fix": "eslint --fix source/**/*.js"
},
"keywords": [
"gltf",
Expand Down

0 comments on commit 60551fc

Please sign in to comment.