Skip to content

Commit 5c3b423

Browse files
author
flowcore-platform
committed
fix(ci): ✨ Enhance npm publish workflow with auth token and version logging
1 parent 919b4d6 commit 5c3b423

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ jobs:
4343
- name: Build
4444
run: bun run build
4545
- name: Publish
46-
run: npm publish --access public --non-interactive --new-version ${{ steps.version.outputs.value }}
46+
run: |
47+
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > ~/.npmrc
48+
echo "Publishing version ${{ steps.version.outputs.value }}"
49+
npm publish --access public
4750
env:
4851
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)