From 376a5b56a96ce63a3255ff41905e6d01575edeaf Mon Sep 17 00:00:00 2001 From: "Leonardo C. Martins" Date: Fri, 20 Sep 2024 19:39:17 -0300 Subject: [PATCH] fix: build package before publishing (#569) --- .changeset/wet-houses-perform.md | 5 +++++ .github/workflows/release-npm-changeset.yml | 3 +++ packages/ui/package.json | 4 ++-- 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .changeset/wet-houses-perform.md diff --git a/.changeset/wet-houses-perform.md b/.changeset/wet-houses-perform.md new file mode 100644 index 00000000..1f4d8326 --- /dev/null +++ b/.changeset/wet-houses-perform.md @@ -0,0 +1,5 @@ +--- +"@fuels/ui": patch +--- + +- Added pnpm build to the publish action, ensuring "dist" folder will be published diff --git a/.github/workflows/release-npm-changeset.yml b/.github/workflows/release-npm-changeset.yml index f0fe5940..0d3d21f2 100644 --- a/.github/workflows/release-npm-changeset.yml +++ b/.github/workflows/release-npm-changeset.yml @@ -46,6 +46,9 @@ jobs: git config --global user.name "${{ github.actor }}" git config --global user.email "${{ github.actor }}@users.noreply.github.com" + - name: Build packages + run: pnpm build:lib + - name: Create Release Pull Request or Publish to NPM id: changesets uses: FuelLabs/changesets-action@main diff --git a/packages/ui/package.json b/packages/ui/package.json index 26f25362..b31217e4 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -18,13 +18,13 @@ "publishConfig": { "access": "public", "main": "./dist/index.cjs.js", - "module": "./dist/index.cjs.js", + "module": "./dist/index.esm.js", "types": "./dist/index.d.ts", "typings": "./dist/index.d.ts", "exports": { ".": { "import": "./dist/index.esm.js", - "require": "./dist/index.cjs.jg", + "require": "./dist/index.cjs.js", "default": "./dist/index.cjs.js", "types": "./dist/index.d.ts", "typings": "./dist/index.d.ts"