We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e3c69a commit 5a34928Copy full SHA for 5a34928
2 files changed
.github/workflows/npm-publish.yml
@@ -7,6 +7,7 @@ on:
7
jobs:
8
publish:
9
runs-on: ubuntu-latest
10
+ environment: prod
11
permissions:
12
contents: read
13
id-token: write
@@ -29,6 +30,4 @@ jobs:
29
30
run: bun run build
31
32
- name: Publish to NPM
- run: npm publish
33
- env:
34
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
+ run: bun run pub --provenance
scripts/publish.ts
@@ -89,7 +89,8 @@ async function main() {
89
90
// 2. Run npm publish
91
console.log("\n📦 Publishing...");
92
- execSync("npm publish", { stdio: "inherit" });
+ const args = process.argv.slice(2).join(" ");
93
+ execSync(`npm publish ${args}`, { stdio: "inherit" });
94
95
} catch (error) {
96
console.error("\n❌ Publish failed:");
0 commit comments