Skip to content

build: release v2.1.0 (#1071) #16

build: release v2.1.0 (#1071)

build: release v2.1.0 (#1071) #16

Workflow file for this run

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 }}