File tree Expand file tree Collapse file tree 1 file changed +13
-24
lines changed
Expand file tree Collapse file tree 1 file changed +13
-24
lines changed Original file line number Diff line number Diff line change 2727 - run : bun lint
2828 - run : bun run build
2929 - run : bun lint
30- - run : bun test --coverage
30+ - run : bun test --coverage --coverage-reporter=lcov,text
31+ - name : Upload to codecov.io
32+ uses : codecov/codecov-action@v5
33+ with :
34+ token : ${{ secrets.CODECOV_TOKEN }}
35+ fail_ci_if_error : true
36+ files : ./coverage/lcov.info
37+ if : github.ref == 'refs/heads/main'
3138
3239 changepacks :
3340 name : changepacks
@@ -43,32 +50,14 @@ jobs:
4350 - check
4451 steps :
4552 - uses : actions/checkout@v5
46- - uses : changepacks/action@main
47- id : changepacks
48- outputs :
49- changepacks : ${{ steps.changepacks.outputs.changepacks }}
50-
51- publish :
52- runs-on : ubuntu-latest
53- needs :
54- - changepacks
55- if : contains(needs.changepacks.outputs.changepacks, 'package.json')
56- steps :
57- - name : Checkout
58- uses : actions/checkout@v5
59-
6053 - uses : oven-sh/setup-bun@v2
6154 with :
6255 bun-version : latest
63- - run : bun i
64- - run : bun run build
65- - run : bun test --coverage --coverage-reporter=lcov
66- - name : Upload to codecov.io
67- uses : codecov/codecov-action@v5
56+ - uses : changepacks/action@main
57+ id : changepacks
6858 with :
69- token : ${{ secrets.CODECOV_TOKEN }}
70- fail_ci_if_error : true
71- files : ./coverage/lcov.info
72- - run : bunx @changepacks/cli publish --yes
59+ publish : true
7360 env :
7461 NPM_CONFIG_TOKEN : ${{ secrets.NPM_TOKEN }}
62+ outputs :
63+ changepacks : ${{ steps.changepacks.outputs.changepacks }}
You can’t perform that action at this time.
0 commit comments