File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 77 - v*.x
88 pull_request :
99 schedule :
10- # 每天凌晨 3 点(UTC)
10+ # 03:00(UTC) every day
1111 - cron : ' 0 3 * * *'
1212
1313permissions :
Original file line number Diff line number Diff line change 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
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
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
You can’t perform that action at this time.
0 commit comments