From 425870df7666ef1c8e7d033cbc3195f43a54213e Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Thu, 16 Jan 2025 19:38:33 +0530 Subject: [PATCH] Upload npm publish logs when failed --- .github/workflows/publish-wasm.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/publish-wasm.yml b/.github/workflows/publish-wasm.yml index e2996eca2962d..650143655b3ed 100644 --- a/.github/workflows/publish-wasm.yml +++ b/.github/workflows/publish-wasm.yml @@ -55,3 +55,9 @@ jobs: run: npm publish --provenance --access public crates/ruff_wasm/pkg env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Archive npm failure logs + uses: actions/upload-artifact@v4 + if: failure() + with: + name: npm-logs + path: ~/.npm/_logs