This commit is contained in:
Dax Raad 2025-06-12 13:17:06 -04:00
parent 2fa50190e5
commit ee1f55dbe2
2 changed files with 3 additions and 8 deletions

View file

@ -32,11 +32,6 @@ jobs:
with:
bun-version: 1.2.16
- name: Test npm auth
run: npm whoami
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: |
bun install
./script/publish.ts
@ -44,4 +39,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }}
AUR_KEY: ${{ secrets.AUR_KEY }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

View file

@ -58,7 +58,7 @@ for (const [os, arch] of targets) {
),
)
if (!dry)
await $`cd dist/${name} && npm publish --access public --tag ${npmTag}`
await $`cd dist/${name} && bun publish --access public --tag ${npmTag}`
optionalDependencies[name] = version
}
@ -83,7 +83,7 @@ await Bun.file(`./dist/${pkg.name}/package.json`).write(
),
)
if (!dry)
await $`cd ./dist/${pkg.name} && npm publish --access public --tag ${npmTag}`
await $`cd ./dist/${pkg.name} && bun publish --access public --tag ${npmTag}`
if (!snapshot) {
// Github Release