tiptap-extension-shiki 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/publish_npm.yml +9 -17
- package/README.md +1 -1
- package/package.json +8 -1
|
@@ -5,28 +5,20 @@ on:
|
|
|
5
5
|
branches:
|
|
6
6
|
# 触发ci/cd的代码分支
|
|
7
7
|
- master
|
|
8
|
+
# 必须添加这个权限,否则无法获取临时身份证明
|
|
9
|
+
permissions:
|
|
10
|
+
id-token: write # Required for OIDC
|
|
11
|
+
contents: read
|
|
8
12
|
|
|
9
13
|
jobs:
|
|
10
14
|
build_and_publish:
|
|
11
15
|
runs-on: ubuntu-latest
|
|
12
|
-
# 必须添加这个权限,否则无法获取临时身份证明
|
|
13
|
-
permissions:
|
|
14
|
-
contents: read
|
|
15
|
-
id-token: write
|
|
16
|
-
|
|
17
16
|
steps:
|
|
18
17
|
- uses: actions/checkout@v4
|
|
19
18
|
- uses: actions/setup-node@v4
|
|
20
19
|
with:
|
|
21
|
-
node-version: '
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
- name: Build package
|
|
28
|
-
run: npm run build
|
|
29
|
-
|
|
30
|
-
- name: Publish to NPM
|
|
31
|
-
# 使用专用 Action,它会自动识别 OIDC 身份并完成发布
|
|
32
|
-
run: npm publish --provenance --access public
|
|
20
|
+
node-version: '24'
|
|
21
|
+
registry-url: 'https://registry.npmjs.org'
|
|
22
|
+
- run: npm ci
|
|
23
|
+
- run: npm run build
|
|
24
|
+
- run: npm publish
|
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tiptap-extension-shiki",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/zerooverture/tiptap-extension-shiki.git"
|
|
11
|
+
},
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "public"
|
|
14
|
+
},
|
|
8
15
|
"scripts": {
|
|
9
16
|
"clean": "rm -rf dist",
|
|
10
17
|
"build": "npm run clean && npm run build:js && npm run build:types",
|