Skip to content

Commit e1fffb9

Browse files
authored
fix(ci): download artifact before pnpm setup in publish job (#147)
The `publish` job has no `checkout` step, so `package.json` (with the `packageManager` field) only exists after the artifact download. Running `pnpm/action-setup` first left it with no pnpm version to read, causing "No pnpm version is specified". Fix: reorder so the artifact download runs before pnpm setup. Fixes the failure in [this run](https://github.com/marimo-team/codemirror-sql/actions/runs/27144993776/job/80120275403).
1 parent 12a17f1 commit e1fffb9

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ jobs:
8080
id-token: write
8181
contents: read
8282
steps:
83+
- name: 📥 Download package artifact
84+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
85+
with:
86+
name: package
87+
8388
- name: ⎔ Setup pnpm
8489
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6
8590

@@ -89,11 +94,6 @@ jobs:
8994
node-version: 24
9095
registry-url: 'https://registry.npmjs.org'
9196

92-
- name: 📥 Download package artifact
93-
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
94-
with:
95-
name: package
96-
9797
- name: 📦 Publish to NPM
9898
run: pnpm publish --no-git-checks --ignore-scripts
9999
env:

0 commit comments

Comments
 (0)