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..35584b9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,6 +11,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 20 + fetch-tags: true - 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",