mirror of
https://github.com/captn3m0/electron-fingerprints.git
synced 2024-09-28 16:22:53 +00:00
Switch to npm version script
This commit is contained in:
parent
54e67d553e
commit
8f52c1b746
3
.github/workflows/update.yml
vendored
3
.github/workflows/update.yml
vendored
@ -36,9 +36,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
git config user.name "github-actions[bot]"
|
git config user.name "github-actions[bot]"
|
||||||
|
# Pre and post version scripts in package.json
|
||||||
npm version "v${{ steps.current-time.outputs.formattedTime }}"
|
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"
|
gh release create "v${{ steps.current-time.outputs.formattedTime }}" --notes "v${{steps.current-time.outputs.formattedTime}}" "loookup/*.json"
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
@ -8,7 +8,8 @@
|
|||||||
"url": "git+https://github.com/captn3m0/electron-fingerprints.git"
|
"url": "git+https://github.com/captn3m0/electron-fingerprints.git"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "node test.js"
|
"test": "node test.js",
|
||||||
|
"postversion": "git push && git push --tags && npm publish"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"electron",
|
"electron",
|
||||||
|
Loading…
Reference in New Issue
Block a user