From 8f52c1b746fcd02f1a8b46534a9d974ef6275816 Mon Sep 17 00:00:00 2001 From: Nemo Date: Sat, 30 Apr 2022 16:44:01 +0530 Subject: [PATCH] Switch to npm version script --- .github/workflows/update.yml | 3 +-- package.json | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index e061fe5..adbdd83 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -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 }} diff --git a/package.json b/package.json index f9e1df3..06cb608 100644 --- a/package.json +++ b/package.json @@ -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",