From d373d4b791e05a4c307f22e4ede13bc2997e98c2 Mon Sep 17 00:00:00 2001 From: Aleksandr Kraiz Date: Fri, 10 Feb 2023 18:31:14 +0400 Subject: [PATCH] Husky (#47) --- .github/workflows/prerelease-package.yml | 5 +++-- .github/workflows/release-package.yml | 5 +++-- package-lock.json | 26 ++++++++++++++++++++++-- package.json | 5 +++-- 4 files changed, 33 insertions(+), 8 deletions(-) diff --git a/.github/workflows/prerelease-package.yml b/.github/workflows/prerelease-package.yml index a3323c7..bb32566 100644 --- a/.github/workflows/prerelease-package.yml +++ b/.github/workflows/prerelease-package.yml @@ -13,9 +13,10 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: '17.x' + node-version: '18.x' - run: npm ci - - run: npm test + - run: npm run build + # - run: npm test - name: Set package registry run: npm config set registry https://npm.pkg.github.com - name: Github package registry authentication diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml index c487f83..4be44c2 100644 --- a/.github/workflows/release-package.yml +++ b/.github/workflows/release-package.yml @@ -11,9 +11,10 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: '17.x' + node-version: '18.x' - run: npm ci - - run: npm test + - run: npm run build + # - run: npm test - name: Set package registry run: npm config set registry https://npm.pkg.github.com - name: Github package registry authentication diff --git a/package-lock.json b/package-lock.json index 7ec12b5..794e8cd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@orionprotocol/sdk", - "version": "0.17.4", + "version": "0.17.5-rc.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@orionprotocol/sdk", - "version": "0.17.4", + "version": "0.17.5-rc.0", "license": "ISC", "dependencies": { "@ethersproject/abstract-signer": "^5.7.0", @@ -53,6 +53,7 @@ "eslint-plugin-n": "^15.6.1", "eslint-plugin-promise": "^6.1.1", "husky": "^7.0.4", + "is-ci": "^3.0.1", "jest": "^29.4.2", "ts-jest": "^29.0.5", "ts-loader": "^9.4.2", @@ -6386,6 +6387,18 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-ci": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-3.0.1.tgz", + "integrity": "sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ==", + "dev": true, + "dependencies": { + "ci-info": "^3.2.0" + }, + "bin": { + "is-ci": "bin.js" + } + }, "node_modules/is-core-module": { "version": "2.11.0", "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz", @@ -15847,6 +15860,15 @@ "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", "dev": true }, + "is-ci": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-3.0.1.tgz", + "integrity": "sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ==", + "dev": true, + "requires": { + "ci-info": "^3.2.0" + } + }, "is-core-module": { "version": "2.11.0", "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz", diff --git a/package.json b/package.json index 0604a24..92838d6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@orionprotocol/sdk", - "version": "0.17.4", + "version": "0.17.5-rc.4", "description": "Orion Protocol SDK", "main": "./lib/esm/index.js", "module": "./lib/esm/index.js", @@ -11,7 +11,7 @@ "clean": "rimraf lib/*", "watch-ts": "tsc -w --skipLibCheck", "watch-js": "nodemon lib/esm/index.js", - "prepare": "husky install", + "prepare": "is-ci || husky install", "prebuild": "tsc", "build": "webpack", "coverage": "jest --coverage", @@ -60,6 +60,7 @@ "eslint-plugin-n": "^15.6.1", "eslint-plugin-promise": "^6.1.1", "husky": "^7.0.4", + "is-ci": "^3.0.1", "jest": "^29.4.2", "ts-jest": "^29.0.5", "ts-loader": "^9.4.2",