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:
parent
f71d9c09ae
commit
60c050f40f
6
.github/workflows/release-cli.yml
vendored
6
.github/workflows/release-cli.yml
vendored
@ -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 }}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user