Skip to content

Commit 8cc8b51

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 8cc8b51

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/release.yml

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

163+
- name: Upload cli LICENSE
164+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
165+
if: ${{ matrix.settings.target == 'x86_64-unknown-linux-gnu' }}
166+
with:
167+
name: cli-license
168+
path: ./packages/cli/LICENSE
169+
if-no-files-found: error
170+
163171
Release:
164172
runs-on: ubuntu-latest
165173
needs: [prepare, build-rust]
@@ -212,6 +220,13 @@ jobs:
212220
pattern: core
213221
merge-multiple: true
214222

223+
- name: Download cli LICENSE
224+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
225+
with:
226+
path: packages/cli
227+
pattern: cli-license
228+
merge-multiple: true
229+
215230
- uses: ./.github/actions/download-rolldown-binaries
216231
with:
217232
github-token: ${{ github.token }}

0 commit comments

Comments
 (0)