Skip to content

Commit 0c26896

Browse files
committed
chore: update gh actions
1 parent ab237c1 commit 0c26896

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

.github/workflows/release-cli.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
tags:
66
- 'cli-v*'
77

8+
permissions:
9+
id-token: write # Required for OIDC trusted publishing
10+
contents: read
11+
812
jobs:
913
build:
1014
runs-on: ubuntu-latest
@@ -22,10 +26,10 @@ jobs:
2226
with:
2327
version: 10
2428

29+
- name: Update npm
30+
run: npm install -g npm@latest
31+
2532
- run: pnpm install --frozen-lockfile
2633
- run: pnpm run build:cli
27-
- run: echo "registry=https://registry.npmjs.org/" > packages/md-cli/.npmrc
2834

2935
- run: cd packages/md-cli && npm publish --registry=https://registry.npmjs.org/
30-
env:
31-
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

packages/md-cli/package.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@doocs/md-cli",
3-
"version": "2.1.2",
3+
"version": "2.1.3",
44
"type": "module",
55
"description": "WeChat Markdown Editor | 一款高度简洁的微信 Markdown 编辑器:支持 Markdown 语法、自定义主题样式、内容管理、多图床、AI 助手等特性",
66
"main": "index.js",
@@ -19,8 +19,15 @@
1919
"util.js"
2020
],
2121
"keywords": [],
22-
"author": "wll8",
22+
"author": "yanglbme",
2323
"license": "ISC",
24+
"repository": {
25+
"type": "git",
26+
"url": "https://github.com/doocs/md"
27+
},
28+
"bugs": {
29+
"url": "https://github.com/doocs/md/issues"
30+
},
2431
"dependencies": {
2532
"express": "^5.1.0",
2633
"form-data": "4.0.4",

0 commit comments

Comments
 (0)