Skip to content

Commit 8fc9d89

Browse files
committed
fix(ci): use absolute $PWD for pnpm pack destination to fix tarball glob
1 parent 1392276 commit 8fc9d89

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,5 +150,9 @@ jobs:
150150
# exchange still happens via the npm CLI.
151151
- name: Pack + Publish conflux-devkit CLI
152152
run: |
153-
pnpm pack -C devtools/devkit --pack-destination .
154-
npm publish ./conflux-devkit-*.tgz --access public
153+
# --pack-destination must be absolute so the tarball lands in the
154+
# repo root regardless of where pnpm resolves the -C working dir.
155+
pnpm pack -C devtools/devkit --pack-destination "$PWD"
156+
tarball=$(ls "$PWD"/conflux-devkit-*.tgz | tail -1)
157+
echo "Publishing tarball: $tarball"
158+
npm publish "$tarball" --access public

0 commit comments

Comments
 (0)