Skip to content

Commit

Permalink
fix: build package before publishing (#569)
Browse files Browse the repository at this point in the history
  • Loading branch information
leocourbassier authored Sep 20, 2024
1 parent fee0959 commit 376a5b5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/wet-houses-perform.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@fuels/ui": patch
---

- Added pnpm build to the publish action, ensuring "dist" folder will be published
3 changes: 3 additions & 0 deletions .github/workflows/release-npm-changeset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 376a5b5

Please sign in to comment.