ReviewOS

also looking at this

stacks/bun-router

chore(deps): update dependency actions/checkout to v6.0.1

#113
Closed chris wants to merge buddy-bot/update-major-update---actions/checkout-1768407181303 into main
1 file +40 -33
.github/workflows/release.ymlmodified+40-33
Changes to .github/workflows/release.yml
@@ -4,54 +4,61 @@ on:
44 push:
55 tags:
66 - 'v*'
7 workflow_dispatch:
78
89jobs:
9 release:
10 name: release
10 npm:
1111 runs-on: ubuntu-latest
12 permissions:
13 contents: write
14 id-token: write
1215
1316 steps:
14 - uses: actions/checkout@v4
17 - name: Checkout
18 uses: actions/checkout@v6.0.1
1519 with:
1620 fetch-depth: 0
1721
18 - name: Install Bun
19 uses: oven-sh/setup-bun@v2.1.0
20
21 - name: Setup pantry
22 uses: stacksjs/pantry@v0.7
22 - name: Setup Node.js
23 uses: actions/setup-node@v4
2324 with:
24 setup-only: 'true'
25 node-version: '24'
26 registry-url: 'https://registry.npmjs.org'
2527
26 - name: Use cached node_modules
27 uses: actions/cache@v5.0.1
28 with:
29 path: node_modules
30 key: node-modules-${{ hashFiles('**/bun.lock') }}
31 restore-keys: |
32 node-modules-
28 - name: Setup Zig
29 run: |
30 curl -L https://ziglang.org/builds/zig-x86_64-linux-0.16.0-dev.1859+212968c57.tar.xz -o zig.tar.xz
31 tar -xf zig.tar.xz
32 mv zig-x86_64-linux-0.16.0-dev.1859+212968c57 zig
33 echo "$PWD/zig" >> $GITHUB_PATH
3334
34 - name: Install Dependencies
35 run: bun install
35 - name: Verify Zig
36 run: zig version
3637
37 - name: Publish to npm
38 run: pantry publish --access public
39 env:
40 BUN_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
38 - name: Build pantry from source
39 run: |
40 git clone --depth 1 https://github.com/home-lang/pantry.git ../pantry
41 cd ../pantry/packages/zig
42 mkdir -p pantry
43 cd pantry
44 git clone --depth 1 https://github.com/zig-utils/zig-cli.git
45 git clone --depth 1 https://github.com/zig-utils/zig-config.git
46 git clone --depth 1 https://github.com/zig-utils/zig-test-framework.git
47
48 - name: Compile pantry
49 run: |
50 cd ../pantry/packages/zig
51 zig build
52 echo "$PWD/zig-out/bin" >> $GITHUB_PATH
4153
42 - name: Create GitHub release
43 run: bunx changelogithub
54 - name: Publish
55 run: pantry npm:publish --access public
4456 env:
45 GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
57 NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4658
47 - name: Attach Binaries
48 uses: stacksjs/action-releaser@v1.2.7
59 - name: Create GitHub Release
60 uses: softprops/action-gh-release@v2
4961 with:
50 files: |
51 bin/router-linux-x64
52 bin/router-linux-arm64
53 bin/router-windows-x64.exe
54 bin/router-darwin-x64
55 bin/router-darwin-arm64
62 generate_release_notes: true
5663 env:
5764 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}