Skip to content

Commit

Permalink
ci(release): add publish option for changeset ci (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
fu050409 authored Jul 18, 2024
1 parent 216f4dd commit 3088b87
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ jobs:
version: pnpm bump
title: "chore(release): version packages"
commit: "chore(release): version packages"
publish: pnpm release
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"preview": "vite preview",
"tauri": "tauri",
"bump": "node scripts/bump.mjs",
"release": "node scripts/release.mjs",
"docs:dev": "vitepress dev docs",
"docs:build": "vitepress build docs",
"docs:preview": "vitepress preview docs"
Expand Down
1 change: 0 additions & 1 deletion scripts/bump.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { fileURLToPath } from 'url';

execSync('npx changeset version', { stdio: 'inherit' });
execSync('pnpm install --no-frozen-lockfile', { stdio: 'inherit' });
execSync('npx changeset tag', { stdio: 'inherit' });

const __dirname = path.dirname(fileURLToPath(import.meta.url));

Expand Down
3 changes: 3 additions & 0 deletions scripts/release.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { execSync } from 'child_process';

execSync('npx changeset tag', { stdio: 'inherit' });

0 comments on commit 3088b87

Please sign in to comment.