Skip to content

Commit 831f445

Browse files
committed
chore: add publish-commit job with Pantry action and job dependencies
1 parent 98da387 commit 831f445

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,27 @@ jobs:
8282

8383
- name: Unit Test
8484
run: bun test
85+
86+
publish-commit:
87+
needs: [lint, typecheck, test]
88+
runs-on: ubuntu-latest
89+
90+
steps:
91+
- uses: actions/checkout@v6
92+
with:
93+
fetch-depth: 0
94+
95+
- name: Setup Pantry
96+
uses: home-lang/pantry/packages/action@main
97+
98+
- name: Install Dependencies
99+
run: bun install
100+
101+
- name: Build
102+
run: bun run build
103+
104+
- name: Publish Commit
105+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
106+
run: pantry publish:commit '.'
107+
env:
108+
PANTRY_REGISTRY_TOKEN: ${{ secrets.PANTRY_TOKEN }}

0 commit comments

Comments
 (0)