Skip to content

Commit 5bcdbe6

Browse files
authored
Merge pull request #40 from solidjs/claude/project-thread-k44bg2
Fix compiler publish: run npm ci before upgrading npm
2 parents 47c75df + c0b7df6 commit 5bcdbe6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎.github/workflows/compiler.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,10 @@ jobs:
103103
with:
104104
node-version: 22
105105
registry-url: https://registry.npmjs.org
106-
- run: npm install -g npm@latest # trusted publishing needs npm 11.5.1 or later
106+
# npm ci with the runner's npm 10: npm 11+ rejects a lock that lacks the
107+
# not-yet-published platform packages. Then upgrade npm only to publish.
107108
- run: npm ci
109+
- run: npm install -g npm@latest # trusted publishing needs npm 11.5.1 or later
108110
- name: Platform packages
109111
run: |
110112
node scripts/sync-optional-deps.mjs

0 commit comments

Comments
 (0)