Skip to content

Commit 4f2ac49

Browse files
committed
ci: fix deploy
1 parent aac61b8 commit 4f2ac49

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ jobs:
5656
git config user.email "github-actions[bot]@users.noreply.github.com"
5757
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
5858
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
59+
pnpm lib:build
5960
pnpm exec nx release ${{ github.event.inputs.version || '' }} --verbose --dryRun=${{ github.event.inputs.dryRun }} --yes
6061
6162
env:

libs/flowbite-angular/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,9 @@
4040
"rxjs": "^7.4.0",
4141
"tailwind-merge": "2.5.5",
4242
"tailwindcss": "^4.0.0"
43+
},
44+
"publishConfig": {
45+
"access": "public",
46+
"directory": "../../dist/libs/flowbite-angular"
4347
}
4448
}

nx.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@
9393
"defaultBase": "main",
9494
"release": {
9595
"version": {
96-
"conventionalCommits": true,
97-
"preVersionCommand": "pnpm lib:build"
96+
"conventionalCommits": true
9897
},
9998
"git": {
10099
"commitMessage": "chore(flowbite-angular): {version}"
@@ -105,7 +104,7 @@
105104
"createRelease": "github"
106105
}
107106
},
108-
"projects": ["libs/flowbite-angular"],
107+
"projects": ["flowbite-angular"],
109108
"releaseTagPattern": "flowbite-angular@v{version}"
110109
}
111110
}

0 commit comments

Comments
 (0)