Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9fcd402

Browse files
committed
feat(vite-plugin): use bump release
1 parent 4756baf commit 9fcd402

5 files changed

Lines changed: 151 additions & 52 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'vite-plugin-v*'
7+
8+
jobs:
9+
release:
10+
uses: crxjs/workflows/.github/workflows/release.yml@v1
11+
with:
12+
publish: true
13+
permissions:
14+
contents: write
15+
id-token: write

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"play:svelte": "pnpm -C playgrounds/svelte run dev",
2323
"play:vanilla": "pnpm -C playgrounds/vanilla run dev",
2424
"play:vue": "pnpm -C playgrounds/vue run dev",
25-
"release": "pnpm --filter \"*plugin*\" build && changeset publish"
25+
"release": "pnpm --filter \"*plugin*\" build && changeset publish",
26+
"release:vite-plugin": "cd ./packages/vite-plugin && pnpm release"
2627
},
2728
"dependencies": {
2829
"@changesets/cli": "^2.30.0",
@@ -40,6 +41,7 @@
4041
"node": ">=14"
4142
},
4243
"devDependencies": {
44+
"bumpp": "^11.0.1",
4345
"vitest": "0.24.3"
4446
},
4547
"pnpm": {
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// bump.config.ts
2+
import { defineConfig } from 'bumpp'
3+
4+
export default defineConfig({
5+
tag: 'vite-plugin-v%s',
6+
})

packages/vite-plugin/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
"client.d.ts"
5454
],
5555
"scripts": {
56+
"release": "bumpp",
5657
"format": "prettier -w -c ../../.prettierrc.yaml",
5758
"build": "run-s build:clean build:js",
5859
"build:clean": "rimraf dist",

0 commit comments

Comments
 (0)