Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: build package before publishing #569

Merged
merged 3 commits into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading