@@ -15,50 +15,25 @@ jobs:
1515
1616 steps :
1717 - name : Checkout
18- uses : actions/checkout@v4
18+ uses : actions/checkout@v6
1919 with :
2020 fetch-depth : 0
2121
22- - name : Setup Node.js
23- uses : actions/setup-node@v4
24- with :
25- node-version : ' 24'
26- registry-url : ' https://registry.npmjs.org'
27-
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
34-
35- - name : Verify Zig
36- run : zig version
22+ - name : Setup Bun
23+ uses : oven-sh/setup-bun@v2
3724
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
25+ - name : Setup Pantry
26+ uses : home-lang/pantry-setup@v1
4727
48- - name : Compile pantry
49- run : |
50- cd ../pantry/packages/zig
51- zig build
52- echo "$PWD/zig-out/bin" >> $GITHUB_PATH
53-
54- - name : Create GitHub Release
55- uses : softprops/action-gh-release@v2
56- with :
57- generate_release_notes : true
58- env :
59- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28+ - name : Install Dependencies
29+ run : bun install
6030
6131 - name : Publish
6232 run : pantry npm:publish --access public
6333 env :
6434 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
35+
36+ - name : Create GitHub Release
37+ uses : stacksjs/action-releaser@v1.2.6
38+ env :
39+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments