File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change 3838 - name : Build packages
3939 run : yarn build
4040
41- - name : Check for changes
42- id : check-changes
43- run : |
44- # 检查是否有待发布的变更
45- if yarn lerna changed --json | jq -e 'length > 0' > /dev/null; then
46- echo "has-changes=true" >> $GITHUB_OUTPUT
47- echo "Found packages with changes to publish"
48- else
49- echo "has-changes=false" >> $GITHUB_OUTPUT
50- echo "No packages have changes to publish"
51- fi
52-
5341 - name : Publish to npm
54- if : steps.check-changes.outputs.has-changes == 'true '
42+ if : github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch '
5543 env :
5644 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
5745 run : |
58- yarn lerna publish from-package --yes
46+ yarn lerna publish from-package --yes --no-verify-access
You can’t perform that action at this time.
0 commit comments