From 407cb620e95eb75828a986c7ecb9f7f56c36a471 Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Mon, 23 Sep 2024 15:12:28 +0100 Subject: [PATCH 1/2] chore: build when publishing --- .github/workflows/cd.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 749ecf2d2..b3fe4f7c1 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -61,6 +61,9 @@ jobs: - name: Install package.json dependencies with pnpm run: pnpm install --frozen-lockfile + - name: Build the package + - run: pnpm build + - name: Publish the package in the npm registry run: npm publish --access public env: From 9f181d90e4cc2356dd87af9a20ac7e749bef9dfb Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Mon, 23 Sep 2024 15:16:15 +0100 Subject: [PATCH 2/2] lol --- .github/workflows/cd.yml | 3 --- package.json | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index b3fe4f7c1..749ecf2d2 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -61,9 +61,6 @@ jobs: - name: Install package.json dependencies with pnpm run: pnpm install --frozen-lockfile - - name: Build the package - - run: pnpm build - - name: Publish the package in the npm registry run: npm publish --access public env: diff --git a/package.json b/package.json index 9bf742290..17db8dd18 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "lint": "eslint src && eslint cypress", "lint:fix": "eslint src --fix && eslint cypress --fix", "prettier": "prettier --write src/ functional_tests/", - "prepublishOnly": "pnpm lint && pnpm test && pnpm build && pnpm test:react", + "prepublishOnly": "pnpm lint && pnpm build && pnpm test && pnpm test:react", "test": "pnpm test:unit && pnpm test:custom-eslint-rules && pnpm test:functional", "test:unit": "jest src", "test:custom-eslint-rules": "jest eslint-rules",