From 114a1700ef45d3dab26978065c355d0ba09731ec Mon Sep 17 00:00:00 2001 From: Niv Ezra Date: Sat, 13 Jan 2024 02:05:21 +0200 Subject: [PATCH] fixed CI/CD and changed prepare script to postinstall to install husky --- .github/workflows/ci.yaml | 4 +++- package-lock.json | 1 + package.json | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9d77602..f7c752a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,4 +1,4 @@ -name: Bump and Release +name: Bump and Publish on: push: branches: @@ -92,6 +92,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + with: + ref: main - name: Publish package to npm id: publish diff --git a/package-lock.json b/package-lock.json index 4007600..2c1dfa1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,6 +7,7 @@ "": { "name": "telenode-js", "version": "1.3.2", + "hasInstallScript": true, "license": "MIT", "dependencies": { "axios": "^1.6.5" diff --git a/package.json b/package.json index 36e68e0..d1df73f 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "publish:dry": "npm publish --dry-run", "set-webhook": "node ./scripts/setWebhook.js", "delete-webhook": "node ./scripts/deleteWebhook.js", - "prepare": "husky install", + "postinstall": "husky install", "format": "npx prettier . --write" }, "bin": {