ReviewOS

also looking at this

stacks/bun-query-builder

feat: new release script using pantry

#766
Closed glennmichael123 wants to merge feat/pantry-release into main
1 file +14 -7
.github/workflows/release.ymlmodified+14-7
Changes to .github/workflows/release.yml
@@ -6,20 +6,27 @@ on:
66 - 'v*'
77
88jobs:
9 npm:
10 name: npm
9 release:
10 name: release
1111 runs-on: ubuntu-latest
1212
1313 steps:
14 - uses: actions/checkout@v5.0.0
14 - uses: actions/checkout@v4
1515 with:
1616 fetch-depth: 0
1717
18 - name: Install Bun
19 uses: oven-sh/setup-bun@v2.0.2
18 - name: Setup Bun
19 uses: oven-sh/setup-bun@v2
20 with:
21 bun-version: latest
22
23 - name: Setup pantry
24 uses: stacksjs/pantry@v0.7
25 with:
26 setup-only: 'true'
2027
2128 - name: Use cached node_modules
22 uses: actions/cache@v4.3.0
29 uses: actions/cache@v4
2330 with:
2431 path: node_modules
2532 key: node-modules-${{ hashFiles('**/bun.lock') }}
@@ -30,7 +37,7 @@ jobs:
3037 run: bun install
3138
3239 - name: Publish to npm
33 run: ./scripts/publish.sh
40 run: pantry publish --access public
3441 env:
3542 BUN_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
3643