Skip to content

Commit cbc5ff3

Browse files
authored
Merge pull request #660 from amplify-education/hotfix/clean-npmrc
Update npm publish command
2 parents 44f98d7 + d5dbbe7 commit cbc5ff3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,8 @@ jobs:
6666

6767
- name: Publish new version
6868
if: env.VERSION_CHANGED == 'true'
69-
run: npm publish --provenance --access public --verbose
69+
run: |
70+
# Create clean .npmrc for OIDC (no auth token, just registry)
71+
echo "registry=https://registry.npmjs.org/" > ~/.npmrc
72+
# Publish with OIDC provenance
73+
npm publish --provenance --access public --verbose

0 commit comments

Comments
 (0)