Skip to content

Commit a425fd5

Browse files
publish-npm: make npm_registry and npm_publish_token optional for trusted publishers support
1 parent e68e5db commit a425fd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

publish-npm/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ runs:
5656
echo "Skipping API publishing"
5757
fi
5858
- name: Restore previous NPM version
59-
if: ${{ steps.npm_setup.outputs.previous_version != '' }}
59+
if: ${{ always() && steps.npm_setup.outputs.previous_version != '' }}
6060
shell: bash
6161
run: |
6262
echo "Restoring npm to previous version ${{ steps.npm_setup.outputs.previous_version }}"

0 commit comments

Comments
 (0)