mirror of
https://github.com/sst/opencode.git
synced 2025-07-08 00:25:00 +00:00
token
This commit is contained in:
parent
2fa50190e5
commit
ee1f55dbe2
2 changed files with 3 additions and 8 deletions
7
.github/workflows/publish.yml
vendored
7
.github/workflows/publish.yml
vendored
|
@ -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 }}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue