File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }}
You can’t perform that action at this time.
0 commit comments