summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-06-12 13:17:06 -0400
committerDax Raad <[email protected]>2025-06-12 13:17:06 -0400
commitee1f55dbe2064e29078d8935e03e1e53d2172ed2 (patch)
treeed2b8920fd6d0d5ec8c2ae9987547d82e3a1c835
parent2fa50190e597a48abdfb99a33fdfec59df7dc757 (diff)
downloadopencode-ee1f55dbe2064e29078d8935e03e1e53d2172ed2.tar.gz
opencode-ee1f55dbe2064e29078d8935e03e1e53d2172ed2.zip
token
-rw-r--r--.github/workflows/publish.yml7
-rwxr-xr-xpackages/opencode/script/publish.ts4
2 files changed, 3 insertions, 8 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index c6cbdef22..e002e2cef 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -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 }}
diff --git a/packages/opencode/script/publish.ts b/packages/opencode/script/publish.ts
index f059db529..208dc6500 100755
--- a/packages/opencode/script/publish.ts
+++ b/packages/opencode/script/publish.ts
@@ -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