From 6a4c3dea324934434fb1521cbd9348be5fb2a5a6 Mon Sep 17 00:00:00 2001 From: Faris CHTATOU Date: Mon, 15 Jan 2024 11:38:36 +0100 Subject: [PATCH] remove husky and add patch in github action --- .github/workflows/publish.yaml | 3 +++ .husky/pre-push | 5 ----- package-lock.json | 24 ------------------------ package.json | 7 ++----- 4 files changed, 5 insertions(+), 34 deletions(-) delete mode 100755 .husky/pre-push diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index d989d91..8adb39c 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -24,6 +24,9 @@ jobs: - name: Install dependencies run: npm ci + - name: Update version + run: npm version patch + - name: Publish to GitHub Packages run: npm publish env: diff --git a/.husky/pre-push b/.husky/pre-push deleted file mode 100755 index 6ef22f6..0000000 --- a/.husky/pre-push +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - -npm run patch - diff --git a/package-lock.json b/package-lock.json index 5f34ee1..f138233 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,9 +8,6 @@ "name": "@avicenne-studio/eslint-config", "version": "1.0.5", "license": "ISC", - "devDependencies": { - "husky": "^8.0.0" - }, "peerDependencies": { "@typescript-eslint/eslint-plugin": ">=5", "eslint": ">= 8", @@ -1656,21 +1653,6 @@ "node": ">= 0.4" } }, - "node_modules/husky": { - "version": "8.0.3", - "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz", - "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==", - "dev": true, - "bin": { - "husky": "lib/bin.js" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/typicode" - } - }, "node_modules/ignore": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.0.tgz", @@ -4172,12 +4154,6 @@ "function-bind": "^1.1.2" } }, - "husky": { - "version": "8.0.3", - "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz", - "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==", - "dev": true - }, "ignore": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.0.tgz", diff --git a/package.json b/package.json index c4cf6b6..01906d5 100644 --- a/package.json +++ b/package.json @@ -17,14 +17,11 @@ "author": "@farischt", "license": "ISC", "peerDependencies": { + "@typescript-eslint/eslint-plugin": ">=5", "eslint": ">= 8", "eslint-config-prettier": ">=9", "eslint-plugin-import": ">=2", "eslint-plugin-prettier": ">=5", - "eslint-plugin-simple-import-sort": ">=10", - "@typescript-eslint/eslint-plugin": ">=5" - }, - "devDependencies": { - "husky": "^8.0.0" + "eslint-plugin-simple-import-sort": ">=10" } }