Skip to content

Commit daab2cf

Browse files
authored
Try using Node 24 to publish with OIDC (#185)
* Try removing --access public from prepublish script * try using node 24 to publish oidc
1 parent e6dc511 commit daab2cf

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ jobs:
4949
- name: Setup Node.js
5050
uses: actions/setup-node@v6
5151
with:
52-
node-version: "20"
53-
cache: "npm"
52+
node-version: 20
53+
cache: npm
5454

5555
- name: Install NAPI-RS CLI
5656
run: npm install -g @napi-rs/cli

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ jobs:
185185
- name: Setup Node
186186
uses: actions/setup-node@v6
187187
with:
188-
node-version: 20
188+
node-version: 24
189189
registry-url: https://registry.npmjs.org/
190190
package-manager-cache: false
191191
- name: Install Node.js dependencies
@@ -209,8 +209,10 @@ jobs:
209209
ls -la npm/ 2>/dev/null || dir npm
210210
- name: Compile TypeScript for publishing
211211
run: task compile
212+
- name: Clean npm cache before publish
213+
run: npm cache clean --force
212214
- name: Publish to npm
213-
run: npm publish --provenance
215+
run: npm publish
214216
- name: Upload npm logs
215217
if: always()
216218
uses: actions/upload-artifact@v4

scripts/publish-platform-packages.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ for (const platform of platforms) {
5454

5555
if (!isDryRun) {
5656
try {
57-
// Use npm publish with --access public for scoped packages
58-
execSync("npm publish --access public", {
57+
execSync("npm publish", {
5958
cwd: platformDir,
6059
stdio: "inherit",
6160
});

0 commit comments

Comments
 (0)