Skip to content

Commit a503d3e

Browse files
author
MattrAus
committed
fix: add --provenance flag to npm publish for Trusted Publishing
1 parent 962a232 commit a503d3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/publish-npm.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ jobs:
106106
# #endregion
107107
- name: Publish to NPM
108108
run: |
109-
echo "HYPOTHESIS_A_C_E: Attempting npm publish"
109+
echo "HYPOTHESIS_E_FIX: Attempting npm publish with --provenance flag"
110110
echo "Final npm config check:"
111111
npm config get registry
112112
npm config get //registry.npmjs.org/:_authToken 2>&1 | head -c 20 || echo "No auth token in config"
113-
npm publish --access public 2>&1 || {
113+
npm publish --provenance --access public 2>&1 || {
114114
EXIT_CODE=$?
115115
echo "npm publish failed with exit code: $EXIT_CODE"
116116
echo "Error details above"

0 commit comments

Comments
 (0)