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" },