Skip to content

Commit 5a34928

Browse files
committed
pub 0.1.10
1 parent 7e3c69a commit 5a34928

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
jobs:
88
publish:
99
runs-on: ubuntu-latest
10+
environment: prod
1011
permissions:
1112
contents: read
1213
id-token: write
@@ -29,6 +30,4 @@ jobs:
2930
run: bun run build
3031

3132
- name: Publish to NPM
32-
run: npm publish
33-
env:
34-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
33+
run: bun run pub --provenance

scripts/publish.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ async function main() {
8989

9090
// 2. Run npm publish
9191
console.log("\n📦 Publishing...");
92-
execSync("npm publish", { stdio: "inherit" });
92+
const args = process.argv.slice(2).join(" ");
93+
execSync(`npm publish ${args}`, { stdio: "inherit" });
9394

9495
} catch (error) {
9596
console.error("\n❌ Publish failed:");

0 commit comments

Comments
 (0)