Skip to content

Commit bca9d27

Browse files
authored
Merge pull request #78 from cloudcome/feat/v0.x
fix: 优化 actions 7
2 parents 9c193a7 + ceef4a3 commit bca9d27

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/code-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- v*.x
88
pull_request:
99
schedule:
10-
# 每天凌晨 3 点(UTC)
10+
# 03:00(UTC) every day
1111
- cron: '0 3 * * *'
1212

1313
permissions:

.github/workflows/release-please.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
publish:
2828
runs-on: ubuntu-latest
2929
needs: release
30-
if: always() && needs.release.outputs.release_created
30+
if: needs.release.outputs.release_created
3131
steps:
3232
- run: sudo timedatectl set-timezone Asia/Shanghai
3333
- run: timedatectl
@@ -36,6 +36,9 @@ jobs:
3636
with:
3737
node-version: 18
3838
cache: npm
39+
registry-url: https://registry.npmjs.org
40+
env:
41+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3942
- run: npm ci
4043
- run: npm run test
4144
- uses: codacy/codacy-coverage-reporter-action@v1
@@ -45,5 +48,6 @@ jobs:
4548
coverage-reports: coverage/lcov.info
4649
- run: npm run build
4750
- run: npm publish --registry=https://registry.npmjs.org
48-
env:
49-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
51+
- uses: jaywcjlove/github-action-package@main
52+
id: pkg
53+
- run: curl https://registry-direct.npmmirror.com/${{ steps.pkg.outputs.name }}/sync?sync_upstream=true

0 commit comments

Comments
 (0)