Switch to npm version script

This commit is contained in:
Nemo 2022-04-30 16:44:01 +05:30
parent 54e67d553e
commit 8f52c1b746
2 changed files with 3 additions and 3 deletions

View File

@ -36,9 +36,8 @@ jobs:
run: |
git config user.email "github-actions[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"
# Pre and post version scripts in package.json
npm version "v${{ steps.current-time.outputs.formattedTime }}"
git push origin --tags
npm publish
gh release create "v${{ steps.current-time.outputs.formattedTime }}" --notes "v${{steps.current-time.outputs.formattedTime}}" "loookup/*.json"
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -8,7 +8,8 @@
"url": "git+https://github.com/captn3m0/electron-fingerprints.git"
},
"scripts": {
"test": "node test.js"
"test": "node test.js",
"postversion": "git push && git push --tags && npm publish"
},
"keywords": [
"electron",