Skip to content

Commit 60b3d94

Browse files
authored
Merge pull request #67 from cloudcome/feat/v0.x
fix: 优化 actions 2023-03-17 02:15:32
2 parents d8c3985 + a153ae7 commit 60b3d94

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

.github/workflows/code-review.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,3 @@ jobs:
2727
- run: npm ci
2828
- run: npm run lint
2929
- run: npm run test
30-
- uses: codacy/codacy-coverage-reporter-action@v1
31-
with:
32-
api-token: ${{ secrets.CODACY_API_TOKEN }}
33-
coverage-reports: coverage/lcov.info

.github/workflows/release-please.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,21 @@ jobs:
2222
release-type: node
2323
bump-minor-pre-major: true
2424
- uses: actions/checkout@v3
25-
if: ${{ steps.release.outputs.release_created }}
25+
if: steps.release.outputs.release_created
2626
- uses: actions/setup-node@v3
27-
if: ${{ steps.release.outputs.release_created }}
27+
if: steps.release.outputs.release_created
2828
with:
2929
node-version: 18
3030
cache: npm
3131
registry-url: https://registry.npmjs.org
32-
- run: npm ci && npm run build && npm publish --registry=https://registry.npmjs.org
33-
if: ${{ steps.release.outputs.release_created }}
32+
- run: npm ci && npm run test
33+
if: steps.release.outputs.release_created
34+
- uses: codacy/codacy-coverage-reporter-action@v1
35+
if: steps.release.outputs.release_created
36+
with:
37+
api-token: ${{ secrets.CODACY_API_TOKEN }}
38+
coverage-reports: coverage/lcov.info
39+
- run: npm run build && npm publish --registry=https://registry.npmjs.org
40+
if: steps.release.outputs.release_created
3441
env:
3542
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)