Skip to content

Commit 50d0368

Browse files
committed
feat: Add npm publish to release.yml
Adding publish step to release yaml
1 parent 9378c52 commit 50d0368

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/release.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,15 @@ jobs:
5050
run: git push --follow-tags origin main
5151
# Ensure this pushes to the correct branch (e.g., main)
5252

53+
- name: Publish to npm
54+
run: npm publish --access public # <-- Scoped packages need --access public
55+
env:
56+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }
57+
5358
- name: Create GitHub Release
5459
uses: softprops/action-gh-release@v2
5560
env:
5661
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5762
with:
5863
tag_name: v${{ steps.package-version.outputs.version }}
59-
generate_release_notes: true
64+
generate_release_notes: true

0 commit comments

Comments
 (0)