Skip to content

Commit 46584fe

Browse files
committed
fix(release): upload cli LICENSE artifact for npm publish
The build-rust job generates the merged LICENSE (with bundled dependency notices) but only uploads dist/ as an artifact. The Release job does a fresh checkout where the generated LICENSE doesn't exist, so pnpm auto-copies the root MIT-only LICENSE instead. Upload the cli LICENSE as a separate artifact and download it in the Release job before publishing.
1 parent df3daae commit 46584fe

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/release.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,16 @@ jobs:
160160
path: ./packages/cli/skills
161161
if-no-files-found: error
162162

163+
- name: Upload LICENSE files
164+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
165+
if: ${{ matrix.settings.target == 'x86_64-unknown-linux-gnu' }}
166+
with:
167+
name: licenses
168+
path: |
169+
./packages/core/LICENSE
170+
./packages/cli/LICENSE
171+
if-no-files-found: error
172+
163173
Release:
164174
runs-on: ubuntu-latest
165175
needs: [prepare, build-rust]
@@ -212,6 +222,13 @@ jobs:
212222
pattern: core
213223
merge-multiple: true
214224

225+
- name: Download LICENSE files
226+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
227+
with:
228+
path: packages
229+
pattern: licenses
230+
merge-multiple: true
231+
215232
- uses: ./.github/actions/download-rolldown-binaries
216233
with:
217234
github-token: ${{ github.token }}

0 commit comments

Comments
 (0)