ReviewOS

also looking at this

stacks/stx

Feat/pantry release

#1556
Closed glennmichael123 wants to merge feat/pantry-release into main
8 files +41 -17
.github/workflows/release.ymlmodified+13-10
Changes to .github/workflows/release.yml
@@ -6,24 +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@v6.0.1
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
20 # env:
21 # BUN_AUTH_TOKEN: $
18 - name: Setup Bun
19 uses: oven-sh/setup-bun@v2
2220 with:
2321 bun-version: latest
2422
23 - name: Setup pantry
24 uses: stacksjs/pantry@v0.7
25 with:
26 setup-only: 'true'
27
2528 - name: Use cached node_modules
26 uses: actions/cache@v4.3.0
29 uses: actions/cache@v4
2730 with:
2831 path: node_modules
2932 key: node-modules-${{ hashFiles('**/bun.lock') }}
@@ -34,12 +37,12 @@ jobs:
3437 run: bun install
3538
3639 - name: Publish to npm
37 run: ./scripts/publish.sh
40 run: pantry publish --access public
3841 env:
3942 BUN_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
4043
4144 - name: Create GitHub Release
42 uses: stacksjs/action-releaser@v1.2.6
45 uses: stacksjs/action-releaser@v1.2.7
4346 with:
4447 files: |
4548 packages/stx/bin/stx-linux-x64.zip