ReviewOS

also looking at this

stacks/ts-auth

chore(deps): update all non-major dependencies

#8
Closed chris wants to merge buddy-bot/update-non-major-updates-1768186258862 into main
3 files +51 -39
.github/workflows/release.ymlmodified+41-29
Changes to .github/workflows/release.yml
@@ -4,49 +4,61 @@ on:
44 push:
55 tags:
66 - 'v*'
7 workflow_dispatch:
78
89jobs:
910 npm:
10 name: npm
1111 runs-on: ubuntu-latest
12 permissions:
13 contents: write
14 id-token: write
1215
1316 steps:
14 - uses: actions/checkout@v6
17 - name: Checkout
18 uses: actions/checkout@v4
1519 with:
1620 fetch-depth: 0
1721
18 - name: Install Bun
19 uses: oven-sh/setup-bun@v2
20
21 - name: Use cached node_modules
22 uses: actions/cache@v4
22 - name: Setup Node.js
23 uses: actions/setup-node@v4
2324 with:
24 path: node_modules
25 key: node-modules-${{ hashFiles('**/bun.lock') }}
26 restore-keys: |
27 node-modules-
25 node-version: '24'
26 registry-url: 'https://registry.npmjs.org'
2827
29 - name: Install Dependencies
30 run: bun install
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
3134
32 - name: Publish to npm
33 run: bun publish --access public
34 env:
35 BUN_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
35 - name: Verify Zig
36 run: zig version
3637
37 - name: Create GitHub release
38 run: bunx changelogithub
39 env:
40 GITHUB_TOKEN: ${{secrets.GITHUB_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
4147
42 - name: Attach Binaries
43 uses: stacksjs/action-releaser@v1.2.7
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.5.0
4456 with:
45 files: |
46 bin/auth-linux-x64
47 bin/auth-linux-arm64
48 bin/auth-windows-x64.exe
49 bin/auth-darwin-x64
50 bin/auth-darwin-arm64
57 generate_release_notes: true
5158 env:
5259 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60
61 - name: Publish
62 run: pantry npm:publish --access public
63 env:
64 NPM_TOKEN: ${{ secrets.NPM_TOKEN }}