From 0ca8635538dbd4b5e20981dec6f91adfc879d3c1 Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Mon, 20 Jan 2020 11:02:16 -0600 Subject: [PATCH] ci: adjust Nightlies/release job so NPM credentials are always removed That is, the file `${HOME}/.npmrc` will be deleted by the "Remove NPM credentials" step even if a previous step failed. --- .github/workflows/nightlies.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nightlies.yml b/.github/workflows/nightlies.yml index 4d876d3f5..3a68f85f2 100644 --- a/.github/workflows/nightlies.yml +++ b/.github/workflows/nightlies.yml @@ -75,6 +75,7 @@ jobs: # EMBARKBOT_NPM_TOKEN should correspond to https://www.npmjs.com/~embarkbot NPM_TOKEN: ${{ secrets.EMBARKBOT_NPM_TOKEN }} - name: Remove NPM credentials + if: always() # Delete .npmrc instead of running `npm logout` because the logout command permanently invalidates the current token run: | - rm ${HOME}/.npmrc + rm -f ${HOME}/.npmrc