File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,13 @@ jobs:
106106 RELEASE_TYPE : alpha
107107
108108 # publish 的时候不提交 semi-ui-19 相关的修改
109+ # 合入到主分支前请将 DIST_TAG=alpha 位置的代码修改为下面的代码
110+ # DIST_TAG=latest
111+ # if [[ ${{ github.event.inputs.release_type }} == 'beta' ]]; then
112+ # DIST_TAG=beta
113+ # elif [[ ${{ github.event.inputs.release_type }} == 'alpha' ]]; then
114+ # DIST_TAG=alpha
115+ # fi
109116 - name : publish
110117 run : |
111118 git config --global user.name 'semi-team'
@@ -123,15 +130,9 @@ jobs:
123130 npm config set registry=https://registry.npmjs.org/
124131 npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
125132 npm whoami
126- DIST_TAG=latest
127- if [[ ${{ github.event.inputs.release_type }} == 'beta' ]]; then
128- DIST_TAG=beta
129- elif [[ ${{ github.event.inputs.release_type }} == 'alpha' ]]; then
130- DIST_TAG=alpha
131- fi
133+ DIST_TAG=alpha
132134 echo "$RELEASE_VERSION"
133135 echo "$DIST_TAG"
134- DIST_TAG=alpha
135136 lerna version $RELEASE_VERSION --exact --force-publish --yes --no-push
136137 lerna publish from-package --dist-tag $DIST_TAG --yes
137138 git reset HEAD~2
You can’t perform that action at this time.
0 commit comments