Skip to content

Commit 0ca8635

Browse files
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.
1 parent c98e769 commit 0ca8635

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/nightlies.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ jobs:
7575
# EMBARKBOT_NPM_TOKEN should correspond to https://www.npmjs.com/~embarkbot
7676
NPM_TOKEN: ${{ secrets.EMBARKBOT_NPM_TOKEN }}
7777
- name: Remove NPM credentials
78+
if: always()
7879
# Delete .npmrc instead of running `npm logout` because the logout command permanently invalidates the current token
7980
run: |
80-
rm ${HOME}/.npmrc
81+
rm -f ${HOME}/.npmrc

0 commit comments

Comments
 (0)