From 5ebf016520b0bd0e83ef00a686815fb1743cc242 Mon Sep 17 00:00:00 2001 From: Ryan Lubke Date: Thu, 13 Feb 2025 07:35:01 -0800 Subject: [PATCH] Archive NPM publish logs in case of failure. --- .github/workflows/release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4f750d9..ed1c7c4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -# Copyright 2020, 2023, Oracle Corporation and/or its affiliates. All rights reserved. +# Copyright 2020, 2025, Oracle Corporation and/or its affiliates. All rights reserved. # Licensed under the Universal Permissive License v 1.0 as shown at # https://oss.oracle.com/licenses/upl. @@ -46,3 +46,9 @@ jobs: - run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_KEY }} + - name: Archive Failure Logs + if: failure() + uses: actions/upload-artifact@v4 + with: + name: npm.log + path: /home/runner/.npm/_logs/*