Skip to content

Commit ccf6532

Browse files
committed
fix: publish oca to npm
1 parent 717bfc0 commit ccf6532

1 file changed

Lines changed: 14 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,21 +70,28 @@ jobs:
7070
- uses: dtolnay/rust-toolchain@stable
7171
with:
7272
targets: wasm32-unknown-unknown
73+
7374
- name: Install wasm-bindgen-cli
7475
run: cargo install wasm-bindgen-cli --version 0.2.92
76+
7577
- name: Build wasm
7678
working-directory: js/wasm
7779
run: bash build-pkg.sh
80+
7881
- name: Setup Node.js
7982
uses: actions/setup-node@v4
8083
with:
81-
node-version: "20.x"
84+
node-version: "24"
8285
registry-url: "https://registry.npmjs.org"
83-
- name: Install yarn
84-
run: npm install -g yarn
85-
- name: Install package dependencies
86+
87+
# (Optional but safe) ensure npm is new enough even if Node changes
88+
- name: Upgrade npm
89+
run: npm i -g npm@^11.5.1
90+
91+
- name: Install dependencies
8692
working-directory: js/wasm/pkg
87-
run: yarn install
88-
- name: Publish to npm
93+
run: npm ci
94+
95+
- name: Publish to npm (OIDC)
8996
working-directory: js/wasm/pkg
90-
run: yarn publish
97+
run: npm publish

0 commit comments

Comments
 (0)