Switch to npm version script
This commit is contained in:
parent
54e67d553e
commit
8f52c1b746
|
@ -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 }}
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue