Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
HankunYu committed Jul 22, 2024
1 parent f4ee829 commit b63ccf8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ jobs:
VERDACCIO_PASSWORD: ${{ secrets.VERDACCIO_PASSWORD }}
VERDACCIO_EMAIL: ${{ secrets.VERDACCIO_EMAIL }}
run: |
echo "${{ secrets.VERDACCIO_PASSWORD }}" | npm login --registry=https://${{ secrets.VERDACCIO_REGISTRY }} --username=${{ secrets.VERDACCIO_USERNAME }} --password-stdin
echo "//${{ secrets.VERDACCIO_REGISTRY }}/:_password=$(echo -n '${{ secrets.VERDACCIO_PASSWORD }}' | openssl base64)" >> ~/.npmrc
echo "//${{ secrets.VERDACCIO_REGISTRY }}/:username=${{ secrets.VERDACCIO_USERNAME }}" >> ~/.npmrc
echo "registry=https://${{ secrets.VERDACCIO_REGISTRY }}" >> ~/.npmrc
- name: Publish all packages
run: |
Expand Down

0 comments on commit b63ccf8

Please sign in to comment.