1
0
mirror of https://gitee.com/Doocs/md synced 2025-04-29 09:32:27 +08:00

chore: update workflow (#669)

This commit is contained in:
Libin YANG 2025-04-28 18:06:13 +08:00 committed by GitHub
parent f71d9c09ae
commit 60c050f40f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,13 +11,15 @@ jobs:
if: github.repository == 'doocs/md'
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org/'
- run: npm install
- run: npm run build:cli
- run: cd md-cli && npm ci && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}