Skip to content

Commit 752ce71

Browse files
committed
ci(release): update release.yml
1 parent d78dc4b commit 752ce71

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,9 @@ jobs:
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

0 commit comments

Comments
 (0)