ReviewOS

also looking at this

stacks/bun-router

chore(deps): update all non-major dependencies

#100
Merged chris wants to merge buddy-bot/update-non-major-updates-1765469611681 into main
3 files +19 -19

Review threads live on the whole diff, not on one commit, so none are shown here - a thread's line means something in the branch's final form, and painting it into an intermediate step would put it on code it is not about.

.github/workflows/publish.ymladded+75-0
Changes to .github/workflows/publish.yml
@@ -0,0 +1,75 @@
1name: Publish to NPM
2
3on:
4 workflow_dispatch:
5 inputs:
6 dry_run:
7 description: 'Dry run (do not actually publish)'
8 required: false
9 default: true
10 type: boolean
11
12jobs:
13 publish:
14 runs-on: ubuntu-latest
15 permissions:
16 contents: read
17 id-token: write # Required for OIDC provenance
18
19 steps:
20 - name: Checkout
21 uses: actions/checkout@v4
22
23 - name: Setup Node.js
24 uses: actions/setup-node@v4
25 with:
26 node-version: '20'
27 registry-url: 'https://registry.npmjs.org'
28
29 - name: Install Bun
30 uses: oven-sh/setup-bun@v2.0.2
31 with:
32 bun-version: latest
33
34 - name: Install Dependencies
35 run: bun install
36
37 - name: Build
38 run: bun run build
39 working-directory: packages/bun-router
40
41 - name: Setup Zig
42 uses: goto-bus-stop/setup-zig@v2.2.1
43 with:
44 version: master
45
46 - name: Setup pantry
47 uses: home-lang/pantry/packages/action@v0.7.5
48 with:
49 setup-only: 'true'
50
51 - name: Verify OIDC Token Available
52 run: |
53 if [ -n "$ACTIONS_ID_TOKEN_REQUEST_URL" ]; then
54 echo "OIDC token endpoint available"
55 else
56 echo "ERROR: OIDC token endpoint not available"
57 exit 1
58 fi
59
60 - name: Verify pantry installed
61 run: pantry --version
62
63 - name: Publish (Dry Run)
64 if: ${{ inputs.dry_run == true }}
65 run: pantry publish --dry-run --access public
66 working-directory: packages/bun-router
67 env:
68 NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
69
70 - name: Publish
71 if: ${{ inputs.dry_run == false }}
72 run: pantry publish --access public
73 working-directory: packages/bun-router
74 env:
75 NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}