ReviewOS

also looking at this

stacks/bun-router

feat: new release script using pantry

#109
Merged glennmichael123 wants to merge feat/pantry-release into main
1 file +10 -5
.github/workflows/release.ymlmodified+10-5
Changes to .github/workflows/release.yml
@@ -6,18 +6,23 @@ 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@v6.0.1
14 - uses: actions/checkout@v4
1515 with:
1616 fetch-depth: 0
1717
1818 - name: Install Bun
1919 uses: oven-sh/setup-bun@v2.1.0
2020
21 - name: Setup pantry
22 uses: stacksjs/pantry@v0.7
23 with:
24 setup-only: 'true'
25
2126 - name: Use cached node_modules
2227 uses: actions/cache@v5.0.1
2328 with:
@@ -30,7 +35,7 @@ jobs:
3035 run: bun install
3136
3237 - name: Publish to npm
33 run: bun publish --access public
38 run: pantry publish --access public
3439 env:
3540 BUN_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
3641
@@ -40,7 +45,7 @@ jobs:
4045 GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
4146
4247 - name: Attach Binaries
43 uses: softprops/action-gh-release@v2.5.0
48 uses: stacksjs/action-releaser@v1.2.7
4449 with:
4550 files: |
4651 bin/router-linux-x64