fix: move build step to workflow to avoid PATH issues
This commit is contained in:
5
.github/workflows/publish.yml
vendored
5
.github/workflows/publish.yml
vendored
@@ -43,7 +43,10 @@ jobs:
|
|||||||
registry-url: "https://registry.npmjs.org"
|
registry-url: "https://registry.npmjs.org"
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: bun install
|
run: bun install --ignore-scripts
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: bun run build
|
||||||
|
|
||||||
- name: Publish
|
- name: Publish
|
||||||
run: bun run script/publish.ts
|
run: bun run script/publish.ts
|
||||||
|
|||||||
@@ -62,9 +62,6 @@ async function generateChangelog(previous: string): Promise<string> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function buildAndPublish(): Promise<void> {
|
async function buildAndPublish(): Promise<void> {
|
||||||
console.log("Building...")
|
|
||||||
await $`bun run build`
|
|
||||||
|
|
||||||
console.log("\nPublishing to npm...")
|
console.log("\nPublishing to npm...")
|
||||||
if (process.env.CI) {
|
if (process.env.CI) {
|
||||||
await $`npm publish --access public --provenance`
|
await $`npm publish --access public --provenance`
|
||||||
|
|||||||
Reference in New Issue
Block a user