ReviewOS

also looking at this

stacks/localtunnels

feat: new release script using pantry

#23
Merged 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
@@ -1,4 +1,4 @@
1name: CI
1name: Releaser
22
33on:
44 push:
@@ -6,23 +6,30 @@ on:
66 - 'v*'
77
88jobs:
9 release:
10 name: release
9 npm:
10 name: npm
1111 runs-on: ubuntu-latest
1212
1313 steps:
14 - uses: actions/checkout@v5
14 - uses: actions/checkout@v4
1515 with:
1616 fetch-depth: 0
1717
18 - name: Install Bun
18 - name: Setup Bun
1919 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
2229 uses: actions/cache@v4
2330 with:
2431 path: node_modules
25 key: node-modules-${{ hashFiles('**/bun.lockb') }}
32 key: node-modules-${{ hashFiles('**/bun.lock') }}
2633 restore-keys: |
2734 node-modules-
2835
@@ -30,7 +37,7 @@ jobs:
3037 run: bun install
3138
3239 - name: Publish to npm
33 run: bun publish --access public
40 run: pantry publish --access public
3441 env:
3542 BUN_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
3643