Skip to content

Commit 2ec1c0a

Browse files
committed
chore: add changeset
1 parent ccdfe18 commit 2ec1c0a

File tree

7 files changed

+710
-8
lines changed

7 files changed

+710
-8
lines changed

.changeset/config.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": [
4+
"@changesets/changelog-github",
5+
{ "repo": "zhiyuanzmj/unplugin-vue-jsx-vapor" }
6+
],
7+
"commit": false,
8+
"fixed": [],
9+
"linked": [],
10+
"access": "public",
11+
"baseBranch": "main",
12+
"updateInternalDependencies": "patch",
13+
"ignore": ["playground*"]
14+
}

.changeset/stale-horses-greet.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'unplugin-vue-jsx-vapor': minor
3+
---
4+
5+
init vapor

.github/workflows/release.yml

Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,51 @@ name: Release
22

33
on:
44
push:
5-
tags:
6-
- 'v*'
5+
branches:
6+
- main
7+
- beta
8+
9+
concurrency: ${{ github.workflow }}-${{ github.ref }}
710

811
jobs:
912
release:
13+
name: Release
1014
runs-on: ubuntu-latest
1115
permissions:
16+
id-token: write
17+
actions: write
18+
pull-requests: write
19+
statuses: write
1220
contents: write
21+
issues: write
22+
security-events: write
23+
pages: read
24+
1325
steps:
14-
- uses: actions/checkout@v3
26+
- name: Checkout Repo
27+
uses: actions/checkout@v4
1528
with:
1629
fetch-depth: 0
1730

18-
- uses: actions/setup-node@v3
31+
- uses: pnpm/[email protected]
32+
33+
- name: Setup Node.js
34+
uses: actions/setup-node@v4
1935
with:
2036
node-version: lts/*
37+
cache: pnpm
2138

22-
- run: npx changelogithub
39+
- name: Install Dependencies
40+
run: pnpm i --frozen-lockfile
41+
42+
- name: Create Release Pull Request or Publish to npm
43+
id: changesets
44+
uses: changesets/action@v1
45+
with:
46+
commit: 'chore: bump versions'
47+
title: 'chore: bump versions'
48+
publish: pnpm run publish
2349
env:
24-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
50+
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
51+
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
52+
NPM_CONFIG_PROVENANCE: true

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@
135135
"devDependencies": {
136136
"@antfu/eslint-config": "^2.21.1",
137137
"@babel/types": "^7.24.7",
138+
"@changesets/changelog-github": "^0.5.0",
139+
"@changesets/cli": "^2.27.6",
138140
"@nuxt/kit": "^3.12.2",
139141
"@nuxt/schema": "^3.12.2",
140142
"@sxzz/eslint-config": "^3.13.0",

playground/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"name": "playground",
23
"private": true,
34
"type": "module",
45
"scripts": {

0 commit comments

Comments
 (0)