Skip to content

Commit 41918af

Browse files
committed
fix: move build step to workflow to avoid PATH issues
1 parent a3cea59 commit 41918af

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ jobs:
4343
registry-url: "https://registry.npmjs.org"
4444

4545
- name: Install dependencies
46-
run: bun install
46+
run: bun install --ignore-scripts
47+
48+
- name: Build
49+
run: bun run build
4750

4851
- name: Publish
4952
run: bun run script/publish.ts

script/publish.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ async function generateChangelog(previous: string): Promise<string> {
6262
}
6363

6464
async function buildAndPublish(): Promise<void> {
65-
console.log("Building...")
66-
await $`bun run build`
67-
6865
console.log("\nPublishing to npm...")
6966
if (process.env.CI) {
7067
await $`npm publish --access public --provenance`

0 commit comments

Comments
 (0)