fix(ci): revert publish runner to ubuntu-latest for npm OIDC
macOS runner breaks npm OIDC trusted publishing. Bun can cross-compile all platform binaries on ubuntu, so macOS runner is not needed.
This commit is contained in:
parent
6670754efe
commit
7a9e604b2d
6
.github/workflows/publish.yml
vendored
6
.github/workflows/publish.yml
vendored
@ -60,7 +60,7 @@ jobs:
|
|||||||
run: bun run typecheck
|
run: bun run typecheck
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
runs-on: macos-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [test, typecheck]
|
needs: [test, typecheck]
|
||||||
if: github.repository == 'code-yeongyu/oh-my-opencode'
|
if: github.repository == 'code-yeongyu/oh-my-opencode'
|
||||||
steps:
|
steps:
|
||||||
@ -77,11 +77,13 @@ jobs:
|
|||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: "24"
|
node-version: "24"
|
||||||
registry-url: "https://registry.npmjs.org"
|
|
||||||
|
|
||||||
- name: Upgrade npm for OIDC trusted publishing
|
- name: Upgrade npm for OIDC trusted publishing
|
||||||
run: npm install -g npm@latest
|
run: npm install -g npm@latest
|
||||||
|
|
||||||
|
- name: Configure npm registry
|
||||||
|
run: npm config set registry https://registry.npmjs.org
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: bun install
|
run: bun install
|
||||||
env:
|
env:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user