Skip to content

Commit 0ebda26

Browse files
committed
release: v0.17.2
1 parent 140d726 commit 0ebda26

File tree

7 files changed

+231
-208
lines changed

7 files changed

+231
-208
lines changed

.github/workflows/release.yml

+25-4
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,39 @@ on:
55
tags:
66
- 'v*'
77

8+
permissions:
9+
id-token: write # This is required for requesting the JWT
10+
811
jobs:
912
release:
1013
runs-on: ubuntu-latest
1114
steps:
12-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1316
with:
1417
fetch-depth: 0
15-
16-
- uses: actions/setup-node@v3
18+
- uses: pnpm/action-setup@v4
19+
with:
20+
version: latest
21+
- uses: actions/setup-node@v4
1722
with:
1823
node-version: latest
24+
registry-url: https://registry.npmjs.org
25+
cache: pnpm
26+
27+
- run: pnpm i
28+
- run: pnpm build
29+
- run: npx jsr publish
30+
31+
- run: npm publish --registry=https://registry.npmjs.org --provenance
32+
env:
33+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
34+
35+
- run: cnpm sync
36+
if: success()
37+
38+
- run: curl -L https://npmmirror.com/sync/json-editor-vue
39+
if: success()
1940

2041
- run: npx changelogithub
2142
env:
22-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
43+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

dependency-licenses.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
├─ MIT: 87
1+
├─ MIT: 88
22
├─ Apache-2.0: 7
33
├─ BSD-2-Clause: 3
44
├─ BSD-3-Clause: 2

jsr.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cloydlau/json-editor-vue",
3-
"version": "0.17.1",
3+
"version": "0.17.2",
44
"exports": "./dist/json-editor-vue.mjs",
55
"publish": {
66
"include": [

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "json-editor-vue",
33
"PascalCasedName": "JsonEditorVue",
44
"type": "commonjs",
5-
"version": "0.17.1",
5+
"version": "0.17.2",
66
"private": false,
77
"description": "Vue and Nuxt 2/3 isomorphic JSON editor, viewer, formatter and validator.",
88
"author": {
@@ -86,7 +86,7 @@
8686
}
8787
},
8888
"dependencies": {
89-
"vanilla-jsoneditor": "^1.0.6",
89+
"vanilla-jsoneditor": "^1.0.7",
9090
"vue-demi": "^0.14.10"
9191
},
9292
"devDependencies": {
@@ -126,7 +126,7 @@
126126
"semver": "^7.6.3",
127127
"simple-git-hooks": "^2.11.1",
128128
"tsup": "^8.3.0",
129-
"typescript": "^5.6.2",
129+
"typescript": "^5.6.3",
130130
"unplugin-auto-import": "^0.18.3",
131131
"unplugin-vue-components": "^0.27.4",
132132
"vite": "^5.4.8",
@@ -138,7 +138,7 @@
138138
"zhlint": "^0.8.2"
139139
},
140140
"simple-git-hooks": {
141-
"pre-commit": "pnpm lint-staged",
141+
"pre-commit": "pnpm lint-staged && actionlint",
142142
"commit-msg": "npx --no -- commitlint --edit ${1}"
143143
},
144144
"lint-staged": {

pnpm-lock.yaml

+182-181
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/dev.mts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// pnpm i only-allow esno prompts cross-spawn kolorist magicast del -D -w
22

3+
import type { ASTNode } from 'magicast'
34
import fs from 'node:fs'
45
import spawn from 'cross-spawn'
56
import { cyan } from 'kolorist'
67
import { loadFile, writeFile } from 'magicast'
78
import { addVitePlugin } from 'magicast/helpers'
89
import prompts from 'prompts'
9-
import type { ASTNode } from 'magicast'
1010

1111
type VueVersion = '3' | '2.7' | '2.6'
1212

scripts/release.mts

+17-16
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,39 @@ import fs from 'node:fs'
44
import spawn from 'cross-spawn'
55
// import { deleteAsync } from 'del'
66
import { cyan } from 'kolorist'
7-
import open from 'open'
7+
// import open from 'open'
88
import prompts from 'prompts'
99
import * as semver from 'semver'
1010

1111
const docsPath = ['./README.md', './docs/README.zh-CN.md']
1212

1313
async function release() {
14-
console.log(cyan('Fetching origin...'))
14+
console.log(cyan('\nFetching origin...'))
1515
if (spawn.sync('git', ['pull'], { stdio: 'inherit' }).status === 1) {
1616
return
1717
}
1818

19-
console.log(cyan('Linting staged...'))
19+
console.log(cyan('\nLinting staged...'))
2020
if (spawn.sync('npx', ['lint-staged'], { stdio: 'inherit' }).status === 1) {
2121
return
2222
}
2323

24-
console.log(cyan('Unit testing...'))
24+
console.log(cyan('\nUnit testing...'))
2525
if (spawn.sync('pnpm', ['test'], { stdio: 'inherit' }).status === 1) {
2626
return
2727
}
2828

29-
console.log(cyan('Building...'))
29+
console.log(cyan('\nBuilding...'))
3030
if (spawn.sync('pnpm', ['build'], { stdio: 'inherit' }).status === 1) {
3131
return
3232
}
3333

34-
console.log(cyan('Publinting...'))
34+
console.log(cyan('\nPublinting...'))
3535
if (spawn.sync('npx', ['publint'], { stdio: 'inherit' }).status === 1) {
3636
return
3737
}
3838

39-
console.log(cyan('Checking exports...'))
39+
console.log(cyan('\nChecking exports...'))
4040
if (spawn.sync('pnpm', ['check-exports'], { stdio: 'inherit' }).status === 1) {
4141
return
4242
}
@@ -126,7 +126,7 @@ async function release() {
126126
fs.writeFileSync('./jsr.json', JSON.stringify(jsrConfig, null, 2))
127127
fs.writeFileSync('./package.json', JSON.stringify(npmConfig, null, 2))
128128

129-
console.log(cyan('Committing...'))
129+
console.log(cyan('\nCommitting...'))
130130
if (spawn.sync('git', ['add', '-A'], { stdio: 'inherit' }).status === 1) {
131131
return
132132
}
@@ -139,30 +139,31 @@ async function release() {
139139
return
140140
}
141141

142-
console.log(cyan('Pushing...'))
142+
console.log(cyan('\nPushing...'))
143143
if (spawn.sync('git', ['push'], { stdio: 'inherit' }).status === 1) {
144144
return
145145
}
146146
if (spawn.sync('git', ['tag', `v${targetVersion}`], { stdio: 'inherit' }).status === 1) {
147147
return
148148
}
149149
if (spawn.sync('git', ['push', 'origin', `refs/tags/v${targetVersion}`], { stdio: 'inherit' }).status === 1) {
150-
return
150+
// return
151151
}
152152

153-
console.log(cyan('Publishing to jsr...'))
153+
/* console.log(cyan('\nPublishing to jsr...'))
154154
if (spawn.sync('npx', ['jsr', 'publish'], { stdio: 'inherit' }).status === 1) {
155155
return
156-
}
156+
} */
157157

158-
console.log(cyan('Publishing to npm...'))
158+
// Automatic provenance generation not supported outside of GitHub Actions
159+
/* console.log(cyan('\nPublishing to npm...'))
159160
if (spawn.sync('npm', ['publish', '--registry=https://registry.npmjs.org', '--provenance'], { stdio: 'inherit' }).status === 1) {
160161
return
161-
}
162+
} */
162163

163-
console.log(cyan('Updating npmmirror...'))
164+
/* console.log(cyan('\nUpdating npmmirror...'))
164165
spawn.sync('cnpm', ['sync'], { stdio: 'inherit' })
165-
open(`https://npmmirror.com/sync/${name}`)
166+
open(`https://npmmirror.com/sync/${name}`) */
166167
}
167168

168169
try {

0 commit comments

Comments
 (0)