Skip to content

Commit 80c873c

Browse files
committed
fix: 修复 release-please 工作流
1 parent d743b73 commit 80c873c

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

.github/workflows/release-please.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,12 @@ jobs:
2323
release-type: node
2424
bump-minor-pre-major: true
2525

26-
test-coverage:
27-
runs-on: ubuntu-latest
26+
publish-npm:
2827
needs: release
2928
if: needs.release.outputs.release_created
30-
steps:
31-
- uses: actions/checkout@v3
32-
- uses: ./.github/actions/setup-nvm
33-
- run: npm ci
34-
- run: npm run test:coverage
35-
- uses: codacy/codacy-coverage-reporter-action@v1
36-
with:
37-
api-token: ${{ secrets.CODACY_API_TOKEN }}
38-
coverage-reports: coverage/lcov.info
39-
40-
publish-npm:
4129
runs-on: ubuntu-latest
4230
permissions:
4331
id-token: write
44-
needs: test-coverage
4532
steps:
4633
- uses: actions/checkout@v3
4734
- uses: ./.github/actions/setup-nvm
@@ -54,10 +41,11 @@ jobs:
5441
- uses: FrontEndDev-org/npm-mirror-sync-action@v1
5542

5643
publish-github:
44+
needs: release
45+
if: needs.release.outputs.release_created
5746
runs-on: ubuntu-latest
5847
permissions:
5948
packages: write
60-
needs: test-coverage
6149
steps:
6250
- uses: actions/checkout@v3
6351
- uses: ./.github/actions/setup-nvm

0 commit comments

Comments
 (0)