-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
31 lines (25 loc) · 736 Bytes
/
release-cli.yml
File metadata and controls
31 lines (25 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Create Cli Release
on:
push:
tags:
- 'cli-v*'
jobs:
build:
runs-on: ubuntu-latest
if: github.repository == 'doocs/md'
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: 22
registry-url: https://registry.npmjs.org/
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- run: pnpm install --frozen-lockfile
- run: pnpm run build:cli
- run: echo "registry=https://registry.npmjs.org/" > packages/md-cli/.npmrc
- run: cd packages/md-cli && npm publish --registry=https://registry.npmjs.org/
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}