Skip to content

Commit 1759f25

Browse files
committed
fix: adjust publishing workflow to match bun requirements
1 parent ccec708 commit 1759f25

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/lint-and-test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v4
1515

16-
- name: Setup Node.js
16+
- name: Setup Bun
1717
uses: oven-sh/setup-bun@v2
1818
with:
19-
bun-version-file: "package.json"
19+
bun-version: "canary"
2020

2121
- name: Install dependencies
2222
run: bun install --frozen-lockfile

.github/workflows/npm-publish.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v4
1414

15-
- name: Setup Node.js
15+
- name: Setup Bun
1616
uses: oven-sh/setup-bun@v2
1717
with:
18-
bun-version-file: "package.json"
18+
bun-version: "canary"
1919

2020
- name: Install dependencies
2121
run: bun install --frozen-lockfile
@@ -35,10 +35,10 @@ jobs:
3535
steps:
3636
- uses: actions/checkout@v4
3737

38-
- name: Setup Node.js
38+
- name: Setup Bun
3939
uses: oven-sh/setup-bun@v2
4040
with:
41-
bun-version-file: "package.json"
41+
bun-version: "canary"
4242
registry-url: "https://registry.npmjs.org"
4343
scope: "@simplecomponent"
4444

@@ -49,6 +49,6 @@ jobs:
4949
run: bun run --filter "*" build
5050

5151
- name: Publish
52-
run: bun publish --filter "*" --access public --tag latest
52+
run: for pkg in $(ls packages); do cd packages/$pkg && bun publish --access public && cd -; done
5353
env:
5454
NPM_CONFIG_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 commit comments

Comments
 (0)