Skip to content

Commit

Permalink
✨ feat: Update public npm package publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
honzabubenik committed Jan 22, 2024
1 parent db539a4 commit 86b5c63
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,15 @@ runs:
shell: bash

- if: inputs.npm-publish == 'public'
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ inputs.npm-token }}
run: |
npm config set "registry=https://registry.npmjs.org" --location=project
npm config set "//registry.npmjs.org/:_authToken=${{ inputs.npm-token }}" --location=project
npm config set "always-auth=true" --location=project
npm publish --access=public
npm config delete "registry" --location=project
npm config delete "//registry.npmjs.org/:_authToken" --location=project
npm config delete "always-auth" --location=project
shell: bash

- run: echo -e "\n${{env.blue}}=== Add Git tag and publish GitHub release ===\n"
shell: bash
Expand Down

0 comments on commit 86b5c63

Please sign in to comment.