Skip to content

Commit

Permalink
fix(build): build before publish
Browse files Browse the repository at this point in the history
Building the components before they publish. It resolve the issue "cannot find the module or its
corresponding type declaration

fix #1
  • Loading branch information
biswarup35 committed May 15, 2022
1 parent b97e6a8 commit 0736eb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Release
on:
push:
branches:
- [main, canary]
branches: [main, canary]
paths:
- "packages/material-you/**"

Expand All @@ -21,7 +20,7 @@ jobs:
- name: "Yarn install"
run: yarn install --frozen-lockfile
- name: "Run build"
run: yarn turbo run build
run: yarn turbo run build --filter=@biswarup35/material-you
- name: "Publish"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions packages/material-you/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"types": "./index.tsx",
"license": "MIT",
"scripts": {
"build": "tsc",
"release": "semantic-release"
},
"dependencies": {
Expand Down

0 comments on commit 0736eb4

Please sign in to comment.