Skip to content

Commit 64907f1

Browse files
committed
chore: update gh actions
1 parent ab237c1 commit 64907f1

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
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: 1 addition & 1 deletion
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",

0 commit comments

Comments
 (0)