Skip to content

Commit b4a3191

Browse files
committed
chore: use Pantry action for publish-commit and add job dependencies
1 parent a7fa3f0 commit b4a3191

1 file changed

Lines changed: 10 additions & 12 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -164,21 +164,16 @@ jobs:
164164
zip -j ../dtsx/bin/dtsx-freebsd-x64.zip zig-out/bin/zig-dtsx
165165
166166
publish-commit:
167+
needs: [lint, typecheck, test]
167168
runs-on: ubuntu-latest
168169

169170
steps:
170-
- uses: actions/checkout@v6.0.2
171-
172-
- name: Install Bun
173-
uses: oven-sh/setup-bun@v2.1.2
174-
175-
- name: Use cached node_modules
176-
uses: actions/cache@v5.0.3
171+
- uses: actions/checkout@v6
177172
with:
178-
path: node_modules
179-
key: node-modules-${{ hashFiles('**/bun.lock') }}
180-
restore-keys: |
181-
node-modules-
173+
fetch-depth: 0
174+
175+
- name: Setup Pantry
176+
uses: home-lang/pantry/packages/action@main
182177

183178
- name: Install Dependencies
184179
run: bun install
@@ -187,4 +182,7 @@ jobs:
187182
run: bun run build
188183

189184
- name: Publish Commit
190-
run: bunx pkg-pr-new publish './packages/dtsx' './packages/bun-plugin' './packages/vite-plugin'
185+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
186+
run: pantry publish:commit './packages/dtsx' './packages/bun-plugin' './packages/vite-plugin'
187+
env:
188+
PANTRY_REGISTRY_TOKEN: ${{ secrets.PANTRY_TOKEN }}

0 commit comments

Comments
 (0)