From 1fde9602d9391f91814e6efa925355f034acd39d Mon Sep 17 00:00:00 2001 From: Bill Mill Date: Tue, 4 Jun 2024 22:57:30 -0400 Subject: [PATCH] I dunno this is ugly but maybe will work --- .github/workflows/publish.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1bc02e123..14d68f1ae 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -68,8 +68,8 @@ jobs: docker build --platform=linux/arm64 --tag nodegit-linux-musl-arm64 -f scripts/Dockerfile.alpine . docker create --platform=linux/arm64 --name nodegit-linux-musl-arm64 nodegit-linux-musl-arm64 docker cp "nodegit-linux-musl-arm64:/app/prebuilds" . - # list what we've got - - run: find prebuilds + - name: "list the generated files" + run: find prebuilds - uses: actions/upload-artifact@v4 with: name: prebuild-linux-arm64 @@ -100,13 +100,19 @@ jobs: - name: copy libs run: | set -x + mkdir -p prebuilds/linux-arm64 + mkdir -p prebuilds/linux-x64 + mkdir -p prebuilds/darwin-arm64 find ${{ steps.download.outputs.download-path }} - mv ${{ steps.download.outputs.download-path }}/*/* ./prebuilds + mv ${{ steps.download.outputs.download-path}}prebuild-Linux-X64/linux-x64/* ./prebuilds/linux-x64/ + mv ${{ steps.download.outputs.download-path}}prebuild-linux-arm64/linux-arm64/* ./prebuilds/linux-arm64/ + mv ${{ steps.download.outputs.download-path}}prebuild-linux-arm64/linux-x64/* ./prebuilds/linux-x64/ + mv ${{ steps.download.outputs.download-path}}prebuild-macOS-ARM64/darwin-arm64/* ./prebuilds/darwin-arm64/ find ./prebuilds - name: npm install run: npm ci - name: publish run: | - (cat "$NPM_CONFIG_USERCONFIG" || true) && echo "token: ${NODE_AUTH_TOKEN:0:10}" && npm publish --provenance --access public + (cat "$NPM_CONFIG_USERCONFIG" || true) && npm publish --provenance --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}