From bae2847f9aee0ce3922c2a4689ece8779d9d992c Mon Sep 17 00:00:00 2001 From: Spiff Jekey-Green Date: Tue, 25 Jul 2023 12:39:28 +0100 Subject: [PATCH] fix: Used pnpm build command in github action --- .changeset/rich-dogs-draw.md | 5 +++++ .github/workflows/publish.yml | 3 ++- package.json | 1 - 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/rich-dogs-draw.md diff --git a/.changeset/rich-dogs-draw.md b/.changeset/rich-dogs-draw.md new file mode 100644 index 0000000..e4f5761 --- /dev/null +++ b/.changeset/rich-dogs-draw.md @@ -0,0 +1,5 @@ +--- +"flincap-sdk": patch +--- + +Used pnpm build command in github action diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6d2712c..32bb307 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,6 +1,6 @@ name: CI on: - push: + pull_request: branches: - "main" @@ -36,6 +36,7 @@ jobs: - name: Publish to npm run: | npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN} + pnpm run build npm publish --ignore-scripts --access public env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file diff --git a/package.json b/package.json index adc317e..6cea7d8 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,6 @@ "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "build": "tsup ./src/index.ts --format cjs,esm --dts", - "prepublishOnly": "npm run build", "lint": "tsc", "change": "changeset" },