Skip to content

Commit c757fe4

Browse files
committed
fix mock generation
1 parent c26187d commit c757fe4

File tree

292 files changed

+125722
-2531
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

292 files changed

+125722
-2531
lines changed

.github/workflows/build-verify.yml

Lines changed: 0 additions & 71 deletions
This file was deleted.

.github/workflows/npm-publish.yml

Lines changed: 0 additions & 68 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 29 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,9 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v4
16-
- uses: actions/setup-node@v4
16+
- uses: oven-sh/setup-bun@v2
1717
with:
18-
node-version: '22'
19-
registry-url: 'https://registry.npmjs.org'
20-
21-
- name: Update npm to latest version for OIDC support
22-
run: npm install -g npm@latest
18+
bun-version: latest
2319

2420
- name: Setup binfmt with QEMU
2521
run: |
@@ -35,27 +31,38 @@ jobs:
3531
sudo make install
3632
3733
- name: Install dependencies and build for Linux and Windows
38-
run: |
39-
npm install
40-
npm run linux-x64
41-
npm run linux-arm64
42-
npm run windows-x64
43-
npm run windows-arm64
44-
npm run mac-x64
45-
npm run mac-arm64
46-
47-
- name: Publish NPM library
4834
run: |
49-
if ${{ contains(github.event.release.tag_name, '-rc') }}; then
50-
echo "Publishing Release Candidate ${{ github.event.release.tag_name}} to NPM"
51-
npm publish --provenance --access public --tag next
35+
bun install
36+
bun run linux-x64
37+
bun run linux-arm64
38+
bun run mac-x64
39+
bun run mac-arm64
40+
bun run windows-x64
41+
bun run windows-arm64
42+
43+
- name: Setup Node.js
44+
uses: actions/setup-node@v4
45+
with:
46+
node-version: '22'
47+
registry-url: 'https://registry.npmjs.org'
48+
49+
- name: Update npm to latest version for OIDC support
50+
run: npm install -g npm@latest
51+
52+
- name: Determine release tag
53+
id: release_tag
54+
run: |
55+
if [[ "${{ github.ref }}" == *"-rc"* ]] || [[ "${{ github.ref }}" == *"-RC"* ]]; then
56+
echo "tag=next" >> "$GITHUB_OUTPUT"
5257
else
53-
echo "Publishing ${{ github.event.release.tag_name}} to NPM"
54-
npm publish --provenance --access public
58+
echo "tag=latest" >> "$GITHUB_OUTPUT"
5559
fi
5660
61+
- name: Publish
62+
run: npm publish --provenance --access public --tag ${{ steps.release_tag.outputs.tag }}
63+
5764
- uses: fnkr/github-action-ghr@v1
5865
env:
5966
GHR_PATH: build/
6067
GHR_REPLACE: false
61-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
68+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

0 commit comments

Comments
 (0)