Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- v*.x
pull_request:
schedule:
# 每天凌晨 3 点(UTC)
# 03:00(UTC) every day
- cron: '0 3 * * *'

permissions:
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
publish:
runs-on: ubuntu-latest
needs: release
if: always() && needs.release.outputs.release_created
if: needs.release.outputs.release_created
steps:
- run: sudo timedatectl set-timezone Asia/Shanghai
- run: timedatectl
Expand All @@ -36,6 +36,9 @@ jobs:
with:
node-version: 18
cache: npm
registry-url: https://registry.npmjs.org
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm ci
- run: npm run test
- uses: codacy/codacy-coverage-reporter-action@v1
Expand All @@ -45,5 +48,6 @@ jobs:
coverage-reports: coverage/lcov.info
- run: npm run build
- run: npm publish --registry=https://registry.npmjs.org
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- uses: jaywcjlove/github-action-package@main
id: pkg
- run: curl https://registry-direct.npmmirror.com/${{ steps.pkg.outputs.name }}/sync?sync_upstream=true