Skip to content

Commit 8886493

Browse files
fix: 在 [email protected] 发布预发布版本需要显式标签 (#1495)
* Update pr&merge_cherry-makrdown_npm-dev.yml * Update pr&merge_cherry-makrdown_npm-dev.yml --------- Co-authored-by: 阿菜 Cai <[email protected]>
1 parent 4a93428 commit 8886493

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/pr&merge_cherry-makrdown_npm-dev.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
working-directory: ./packages/cherry-markdown
3333
run: |
3434
BASE_VERSION=$(jq -r .version package.json)
35-
VERSION="${BASE_VERSION}-dev.$(date +'%Y%m%d%H%M').${{ env.COMMIT_SHORT_SHA }}"
35+
VERSION="${BASE_VERSION}-$(date +'%Y%m%d%H%M').${{ env.COMMIT_SHORT_SHA }}"
3636
jq --arg name "@cherry-markdown/cherry-markdown-dev" \
3737
--arg version "$VERSION" \
3838
'.name = $name | .version = $version | del(.scripts.publish?)' package.json | sponge package.json
@@ -62,8 +62,6 @@ jobs:
6262
working-directory: ./packages/cherry-markdown
6363
run: yarn install && yarn build
6464

65-
- run: npm i -g npm@latest
66-
6765
- name: npm publish
6866
working-directory: ./packages/cherry-markdown
6967
run: npm publish

0 commit comments

Comments
 (0)