Skip to content

Commit 9bf508b

Browse files
committed
ci: add release command
1 parent cd76856 commit 9bf508b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: .github/workflows/release.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ jobs:
3939
run: pnpm build
4040

4141
- name: Publish to NPM
42-
run: |
43-
pnpm ci:publish
42+
run: pnpm ci:publish
4443
env:
4544
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4645

Diff for: package.json

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"build": "nx run-many --target=build --all --parallel",
2323
"build:affected": "nx affected --target=build",
2424
"build:packs": "pnpm --filter=@milkdown/* run build",
25+
"ci:publish": "pnpm build:packs && pnpm publish --access public -r --no-git-checks --tag latest",
2526
"graph": "nx dep-graph",
2627
"clear": "rimraf 'packages/*/{lib,tsconfig.tsbuildinfo,node_modules,.rollup.cache}' && rimraf node_modules",
2728
"changeset": "changeset",

0 commit comments

Comments
 (0)