Skip to content

Commit

Permalink
chore: improve cd
Browse files Browse the repository at this point in the history
  • Loading branch information
zernonia committed Nov 4, 2024
1 parent 3646203 commit df60e15
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup (Install Node & pnpm)
uses: ./.github/actions/setup

- name: Install dependencies
run: pnpm i --frozen-lockfile

- name: Build CLI & Publish to npm
run: pnpm --filter shadcn-vue pub:release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Build Module & Publish to npm
run: pnpm --filter shadcn-nuxt pub:release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- run: pnpm dlx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
3 changes: 2 additions & 1 deletion packages/module/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"lint": "eslint .",
"test": "vitest run",
"test:watch": "vitest watch",
"release": "pnpm run prepack && pnpm publish && git push --follow-tags"
"release": "pnpm run prepack && pnpm publish && git push --follow-tags",
"pub:release": "pnpm prepack && pnpm publish --no-git-checks --access public"
},
"dependencies": {
"@nuxt/kit": "^3.12.4",
Expand Down

0 comments on commit df60e15

Please sign in to comment.