From 0ad5830754517c7b8ce417a0da006102e5d2cf24 Mon Sep 17 00:00:00 2001 From: Nicolas Polizzo Date: Sat, 9 Dec 2023 21:59:37 +0100 Subject: [PATCH] remove postinstall script --- .github/workflows/publish.yml | 2 +- .github/workflows/test.yml | 2 +- package-lock.json | 1 - package.json | 1 - 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 45a454d..bddff2e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,7 +19,7 @@ jobs: node-version: 20 registry-url: "https://registry.npmjs.org" - name: Install and Build - run: npm ci + run: npm ci && npm run build - name: Publish to NPM run: npm publish --access public env: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e8c26a2..3fa15e1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,7 +10,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 with: - fetch-depth: 20 + fetch-depth: 0 - name: Setup Node and NPM uses: actions/setup-node@v4 with: diff --git a/package-lock.json b/package-lock.json index 130ceea..0b3b4b0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,7 +7,6 @@ "": { "name": "@freezystem/mjml-bar-chart", "version": "1.2.2", - "hasInstallScript": true, "license": "MIT", "dependencies": { "mjml": "^4.14.1", diff --git a/package.json b/package.json index 4a6a563..e714e44 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,6 @@ "watch": "tsc --watch", "prebuild": "rm -rf build", "build": "tsc -b tsconfig.json tsconfig.esm.json tsconfig.types.json", - "postinstall": "npm run build", "test": "jest", "test:coverage": "jest --coverage", "test:snap": "jest --updateSnapshot",