Skip to content

Commit ee1f55d

Browse files
committed
token
1 parent 2fa5019 commit ee1f55d

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,11 @@ jobs:
3232
with:
3333
bun-version: 1.2.16
3434

35-
- name: Test npm auth
36-
run: npm whoami
37-
env:
38-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
39-
4035
- run: |
4136
bun install
4237
./script/publish.ts
4338
working-directory: ./packages/opencode
4439
env:
4540
GITHUB_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }}
4641
AUR_KEY: ${{ secrets.AUR_KEY }}
47-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
42+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

packages/opencode/script/publish.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ for (const [os, arch] of targets) {
5858
),
5959
)
6060
if (!dry)
61-
await $`cd dist/${name} && npm publish --access public --tag ${npmTag}`
61+
await $`cd dist/${name} && bun publish --access public --tag ${npmTag}`
6262
optionalDependencies[name] = version
6363
}
6464

@@ -83,7 +83,7 @@ await Bun.file(`./dist/${pkg.name}/package.json`).write(
8383
),
8484
)
8585
if (!dry)
86-
await $`cd ./dist/${pkg.name} && npm publish --access public --tag ${npmTag}`
86+
await $`cd ./dist/${pkg.name} && bun publish --access public --tag ${npmTag}`
8787

8888
if (!snapshot) {
8989
// Github Release

0 commit comments

Comments
 (0)