Skip to content

Commit b50fe32

Browse files
committed
fix: add NODE_AUTH_TOKEN from NPM_TOKEN secret for npm publish
- npm publish requires NODE_AUTH_TOKEN environment variable - Use NPM_TOKEN secret (not GITHUB_TOKEN which is for GitHub API) - Fixes authentication for npm registry
1 parent 0e98e47 commit b50fe32

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/npm-publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ jobs:
5151
5252
- name: Publish to npm (Trusted Publishing)
5353
run: npm publish ./dist/angular-editor --tag ${{ steps.npm-tag.outputs.tag }} --provenance --access public
54+
env:
55+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5456

5557
- name: Create GitHub Release
5658
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)