Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 43f06ad

Browse files
chore: wip
1 parent f84baf9 commit 43f06ad

1 file changed

Lines changed: 14 additions & 36 deletions

File tree

.github/workflows/release.yml

Lines changed: 14 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -15,50 +15,28 @@ 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
22+
- name: Setup Bun
23+
uses: oven-sh/setup-bun@v2
3424

35-
- name: Verify Zig
36-
run: zig version
25+
- name: Setup Pantry
26+
uses: home-lang/pantry-setup@v1
3727

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
28+
- name: Install Dependencies
29+
run: bun install
4730

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 }}
31+
- name: Build
32+
run: bun run build
6033

6134
- name: Publish
6235
run: pantry npm:publish --access public
6336
env:
6437
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
38+
39+
- name: Create GitHub Release
40+
uses: stacksjs/[email protected]
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)