Skip to content

Commit

Permalink
chore: save articfacts on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasholzer committed Aug 9, 2024
1 parent aa155ff commit 41218c7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
registry-url: 'https://registry.npmjs.org'
- name: Authenticate with private NPM package
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_READ_ONLY_TOKEN }}" > ~/.npmrc
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_READ_ONLY_TOKEN }}" > /home/runner/work/_temp/.npmrc
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_READ_ONLY_TOKEN }}" > .npmrc
- name: Install Netlify E2E
run: npm install -g @netlify/[email protected]
Expand All @@ -33,3 +33,10 @@ jobs:
run: |
echo "The extracted pipelineId is: ${{ env.pipelineId }}"
echo "The extracted Tag is: ${{ env.testImageTag }}"
- name: Save npm logs on failure
if: failure() # This step only runs if the previous steps failed
uses: actions/upload-artifact@v4
with:
name: npm-logs
path: /home/runner/.npm/_logs

0 comments on commit 41218c7

Please sign in to comment.